Hi, i need some simple help please

Below is the current code for display and counting values in a table...
boolean learningstyle = false;
String lstyleresult = "";
RS=Stmt.executeQuery("select data from learningstyle where userid='"+sr_studentid+"' order by submitted desc,id desc");
     if (RS.first())
          learningstyle = true;
          String data = RS.getString("data");
          String[] arraydata = data.split(",");
          String[] visualnos = {"4","6","8","12","13","17","22","24","25","29","33","35","37"};
          String[] auditorynos = {"1","3","9","11","14","16","18","21","26","28","32","36","38"};
          String[] doingnos = {"2","5","7","10","15","19","20","23","27","30","31","34","39"};
          int vscore=0;
          int ascore=0;
          int kscore=0;
          for (int i=0;i<visualnos.length;i++)
               if(arraydata[Integer.parseInt(visualnos[i])-1].equals("Y"))
                    vscore++;
          for (int i=0;i<auditorynos.length;i++)
               if(arraydata[Integer.parseInt(auditorynos[i])-1].equals("Y"))
                    ascore++;
          for (int i=0;i<doingnos.length;i++)
               if(arraydata[Integer.parseInt(doingnos[i])-1].equals("Y"))
                    kscore++;
          lstyleresult = "Visual: "+vscore+"/"+visualnos.length+"<br /><br />Audio: "+ascore+"/"+auditorynos.length+"<br /><br />Kinetic: "+kscore+"/"+doingnos.length;
     else
          learningstyle = false;
%>
I want the JSP code to run the query above OR run the query below:
RS=Stmt.executeQuery("select data from learningstyle where userid='"+sr_studentid+"' and input_type='manual' order by submitted desc,id desc");
How would i do this?

ok how does the following look?
<%
     // +------------------------------------------------------------------------
     // | LEARNING STYLE DATA QUERY
     // +------------------------------------------------------------------------
     boolean learningstyle = false;
     String lstyleresult = "";
     int vscore=0;
     int ascore=0;
     int kscore=0;
     for (int i=0;i<visualnos.length;i++)
               if(arraydata[Integer.parseInt(visualnos)-1].equals("Y"))
                    vscore++;
     for (int i=0;i<auditorynos.length;i++)
               if(arraydata[Integer.parseInt(auditorynos[i])-1].equals("Y"))
                    ascore++;
     for (int i=0;i<doingnos.length;i++)
               if(arraydata[Integer.parseInt(doingnos[i])-1].equals("Y"))
                    kscore++;
          lstyleresult = "Visual: "+vscore+"/"+visualnos.length+"<br /><br />Audio: "+ascore+"/"+auditorynos.length+"<br /><br />Kinetic: "+kscore+"/"+doingnos.length;
     RS=Stmt.executeQuery("select userid from learningstyle where userid='"+sr_studentid+"' order by submitted desc,id desc");
     if (RS.first())
          PreparedStatement pStmt = ConnStar.prepareStatement("select data from learningstyle where userid='"+sr_studentid+"' order by submitted desc,id desc");
          learningstyle = true;
          String data = RS.getString("data");
          String[] arraydata = data.split(",");
          String[] visualnos = {"4","6","8","12","13","17","22","24","25","29","33","35","37"};
          String[] auditorynos = {"1","3","9","11","14","16","18","21","26","28","32","36","38"};
          String[] doingnos = {"2","5","7","10","15","19","20","23","27","30","31","34","39"};
          else if
          PreparedStatement pStmt = ConnStar.prepareStatement("select data from learningstyle where userid='"+sr_studentid+"' and input_type='manual' order by submitted desc,id desc");
          String data = RS.getString("data");
          String[] arraydata = data.split(",");
          String[] visualnos = {"1","2","3","4","5","6","7","8","9","10","11","12","13"};
          String[] auditorynos = {"14","15","16","17","18","19","20","21","22","23","24","25","26"};
          String[] doingnos = {"27","28","29","30","31","32","33","34","35","36","37","38","39"};
     else
          learningstyle = false;
%>

Similar Messages

  • I need some help adding music to my slideshow in iPhoto.  When I open iTunes as the source, it says it needs to be open to populate, which it is.  I have no knowledge of computers...like, at all....so I need some (simple) help?  If possible?  Thanks.

    When I open iTunes as the source, it says it needs to be open to populate, which it is.  I have no knowledge of computers...like, at all....so I need some (simple) help?  If possible?  Thanks.

    When I open iTunes as the source, it says it needs to be open to populate, which it is.  I have no knowledge of computers...like, at all....so I need some (simple) help?  If possible?  Thanks.

  • Replaced zd8000 motherboard and need some troubleshooting help please............

    Hello All,
     I just replaced the motherboard on our HP zd8000 (pentium 4, 3.0ghz, 2gb ram, Win XP) with a used but tested good MB and need some help with the following.
    1) I now cannot play DVD movies as the error no "dvd decoder" present which was not an issue before?  Where can I go to get a free decoder that will work, as Windows only shows paid versions?  We have the dvd burner/reader with lightscribe. SOLVED! CNET HAD DECODER.
    2) The internal temperature, according to SpeedFan, is running around 140 degrees with just some Internet browsing.  Is that a normal temperature because I only have one of three fans running on the laptop?  Is there anyway of making all three fans run to be sure there are no issues?  I am positive I hooked up everything but again only one fan seems to be running?
    3) I discovered some of the pins were damaged in the card reader.  I may get the Seller to give me a discount, no intention of tearing it apart simply for that, but is there any concern of short or otherwise?
    4) Our battery stopped charging years ago, these were notorious for such, but I purchased a new one last year and hoped the replacement MB would allow charging again.  No such luck though.  Is there anything I can do, BIOS update etc, to make the battery charge?
    5) Anything you folks can think of for me to test to insure the new motherboard is working properly?
    Thanks, Ralph 
    P.S. This was a correct replacement board according to MB serial numbers.  Everything else seems to be functioning properly other than mentioned.  Our graphics went out on the original MB.
    This question was solved.
    View Solution.

    Some of the wires had pushed out of the harness that connected the other two fans.  I double checked and re-attached those so now the laptop is running quite a bit cooler.
    EVERYTHING IS GOOD TO GO!

  • Lenovo A6000 Softbricked? Needs some serious help--Please

    Hi My A6000 phone got factory reset and then I tried to recover some lost pics...but I was advised that my phone needs to be rooted first, so the software opened kingo root soft, It showed me the message that phone has been rooted and when it rebooted there was a notification of software update which I said ok and ever since then the phone is stuck on system recovery mode (not sure if it is called soft brick or not) and I have tried many things including choosing all the options starting from reboot system now, apply update from ADB, wipe data/factory reset, wipe cache partition, apply update from sdcard but nothing seems to work!!! oh I for got to mention on the top of the screen it says  Androoid system recovery <3e>Kraft -A6000_S035_150507 and then gives all the option and i have tried this following : https://boycracked.wordpress.com/2015/06/03/unbrick-lenovo-a6000/ but some how for the first solution it keeps on saying download failed, emergency recovery download failed...anyways it does not work  Is there any soultion to this!!! Please help if there is one!

    it worked the link from boycracked (mentioned above )actually worked the trick was to hold vol up+down key (while the phone is off) and then insert the usb into your computer, secondly my computer kept of saying that qualcomms --digital signatures not verified and the port is supposed to be Qualcomm Lenovo HS-USB QDLoader 9008 where as mine showed up to 9091, to solve this I uninstalled the drivers and then disabled digital signatures (use goggle how to disable signatures verification on whichever windows you are using) and it worked fine. Thank you all

  • Newbie needs some simple help on triggers

    Hi there. I need to create a trigger and am very new to this language and would love some help.
    I have tables STUDENT, BOOKS, BORROWING.
    When a student borrows a book, a composite entry is created in the BORROWING table. In the Books table, their is an attribute 'Borrowed' with a Y or N.
    When a new record with the same Title as a book is created in borrowing, the value of 'borrowed' needs to be set to Y. So far I have the following, but forgot that I need to insert a WHERE clause so that it doesnt update every book, but only the book that causes the trigger.
    I am having trouble with this- how would i go about doing this? Any help appreacited...
    CREATE OR REPLACE TRIGGER book_returned_trigger
    AFTER DELETE ON borrowing
    FOR EACH ROW
    BEGIN
    UPDATE books
    SET
    borrowed= 'N';
    END;

    Hi guys. Am really having some trouble now. Funny thing is I had it working!
    I have the following tables:
    >
    CREATE TABLE STUDENT
         studentID VARCHAR2(8) NOT NULL,
         firstname VARCHAR2(20) NOT NULL,
         lastname VARCHAR2(20) NOT NULL,
         gender VARCHAR2(10),
         dob DATE,
         address VARCHAR2(20),
         suburb VARCHAR2(20),
         phone VARCHAR2(8),
         PRIMARY KEY(studentID)
    CREATE TABLE BOOKS
         title VARCHAR2(20) NOT NULL,
         publisher VARCHAR2(20),
         year DATE,
         borrowed CHAR(1) CHECK (borrowed IN ('Y','N')),
         PRIMARY KEY(title)
    CREATE TABLE BORROWING
         studentID VARCHAR2(8) NOT NULL,
         title VARCHAR2(20) NOT NULL,
         PRIMARY KEY(studentID,title),
         FOREIGN KEY(studentID) REFERENCES student(studentID),
         FOREIGN KEY(title) REFERENCES books(title)
    >
    My Triggers look like this:
    >
    CREATE OR REPLACE TRIGGER book_borrowed_trigger
    AFTER INSERT ON borrowing
    FOR EACH ROW
    BEGIN
    UPDATE books
    SET
    borrowed= 'Y' WHERE title = :OLD.title;
    END;
    CREATE OR REPLACE TRIGGER book_returned_trigger
    AFTER DELETE ON borrowing
    FOR EACH ROW
    BEGIN
    UPDATE books
    SET
    borrowed= 'N' WHERE title = :OLD.title;
    END;
    >
    and some sample date:
    >
    INSERT INTO student (studentID, firstname,
    lastname, gender, dob, address, suburb, phone)
    VALUES ('34025492','Sally','Field','Female',
    '26/FEB/1970','123 Latrobe Pde','Dromana','59812553');
    INSERT INTO student (studentID, firstname,
    lastname, gender, dob, address, suburb, phone)
    VALUES ('98503345','Ray','Blackburn','Female',
    '9/NOV/1954','52 Murawa Dve','Sorrento','59812433');
    INSERT INTO books (title, publisher, year, borrowed)
    VALUES ('Harry Potter','Roundhouse','1998','N');
    INSERT INTO books (title, publisher, year, borrowed)
    VALUES ('Twilight','Jones Books','2000','N');
    INSERT INTO borrowing (studentID, title)
    VALUES ('20737785','Harry Potter');
    >
    Now I cant get this trigger to change the value of the 'borrowed' column in 'BOOKS' to Y when I create a new record in the BORROWING table that references one of the Books.
    Any idea why? I cant see why! Thanks for the help so far guys
    Edited by: lockmac on Apr 1, 2009 12:40 AM

  • I need some photoshop help, please?

    i am trying to make a .gif, but when ever i go to "File --> Import --> Video Frames to Layers" and select the video, the little video box thing is blank
    ( see screenshot here:http://i53.tinypic.com/vdi877.jpg ) and yes, the video is in one of the acceptable formats. can you help me please?
    oh yea, and i have Vista (in case that matters)

    OK, "AVI" is but a container - a "wrapper," if you will. An AVI can contain almost anything, and much of it cannot be used by Photoshop. See this ARTICLE for much more background. There are tips in that article on "peeking inside" the wrapper. Please let us know what is inside those files, and someone can likely help you.
    Good luck,
    Hunt

  • Need some simple help..

    Basically what Im trying to do is write something that can repeatedly list in integers until a sentinel of 0 is entered, where it would then go on and do whatever is next. As simple as I thought it would be, I've been stuck on doing that for hours. Although I am still a java noob, it sounded easy at the time :/
    Anyway, heres the code I've managed to get after about the 6th or 7th write and rewrite stage now. It may not make too much since given how I can't seem to do much with it in the first place.
    import acm.program.*;
    public class FindRange extends ConsoleProgram {
         int sentinal = 0;
         public void run() {     
              println("Continue to enter numbers, and enter 0 to find the highest and lowest integer");
              while (true) {
                   int x = readInt("Enter a number:  ");
                   if (sentinal == x) {
                        println("test Posative");
                        break;
                   else {
                        println("test fail");
                        break;
         private void askInt() {
    }Anyway, I know this may have a real simple solution and I just cant figure something out to do, but Im hoping someone can explain something to me! Also, if anyone has some recommendations id love to hear why/how as well (never been a fan of people giving a solution and not telling how or why it works, if its a tad complex).
    Edited by: Cypher220 on Jan 7, 2010 5:43 PM

    Cypher220 wrote:
    import acm.program.*;
    public class FindRange extends ConsoleProgram {
         int sentinal = 0;
         public void run() {     
              println("Continue to enter numbers, and enter 0 to find the highest and lowest integer");
              while (true) {
                   int x = readInt("Enter a number:  ");
                   if (sentinal == x) {
                        println("test Posative");
                        break;
                   else {
                        println("test fail");
                        break;
         private void askInt() {
    What happens when you run it?
    Do you have a question to ask?
    Anyway, I know this may have a real simple solution and I just cant figure something out to do, but Im hoping someone can explain something to me! Birds can fly, fish can swim. Not sure if this is what you wanted
    Also, if anyone has some recommendations id love to hear why/how as well (never been a fan of people giving a solution and not telling how or why it works, if its a tad complex).Ask questions.
    Mel

  • Need some code help please

    I am trying to make a sun and planet with the planet orbiting the sun. It is all working but the complier is having a problem with the instance variable _ball in the programs.  Can anyone help me fix this, I think I'm almost there.
    public class MovingBall extends javax.swing.JPanel
        int X0 = 100, Y0 = 100;
        double X2, Y2;
        double r = 10;
        double a = 0;
        double da = .04;
        double ecc = 1;
        double TWOPI = 2 * Math.PI;
        private javax.swing.JPanel _panel;
        public MovingBall (java.awt.Color aColor, javax.swing.JPanel aPanel)
         super();
         _panel = aPanel;
         X2 = X0 + r * Math.cos(a);
         Y2 = Y0 + r * Math.sin(a);
         //this.setLocation(X2, Y2);
        public void move()
         a = a + da;
         a = a % TWOPI;
         X2 = X0 + r * ecc * Math.sin(a);
         Y2 = Y0 + r * ecc * Math.sin(a);
         //this.setLocation (X2, Y2);
        public boolean inFront()
         return (a <= Math.PI);
        public void SetCircle(int x, int y)
         X0 = x;
         Y0 = y;
         //ecc = 1.0 - (double)pct/100;
    public class MovingBallPanel extends javax.swing.JPanel implements Mover, Controller
        private final int INIT_X = 250;
        private final int INIT_Y = 200;
        private SmartEllipse _sun;
        private Sky _sky;
        private final int SUN_DIAMETER = 60;
        //private MovingBall _ball;
        private final int PLANET_DIAMETER = 35;
        private final int ORBIT_DIAMETER = 185;
        int _da = 1;
        int _ecc = 1;
        private final int INTERVAL = 100;
        private MoveTimer _timer;
        public MovingBallPanel()
         super();
         this.setBackground(java.awt.Color.BLACK);
         _sun = new SmartEllipse(java.awt.Color.YELLOW);
         _sun.setSize(SUN_DIAMETER, SUN_DIAMETER);
         _sun.setLocation(INIT_X - SUN_DIAMETER/2, INIT_Y - SUN_DIAMETER/2);
         //_ball = new MovingBall();
         //_ball.setCenter((INIT_X - PLANET_DIAMETER)/2, (INIT_Y - PLANET_DIAMETER)/2);
         //_ball.setAngleIncrement(_da);
         _sky = new Sky();
         _timer = new MoveTimer(INTERVAL, this);
         _timer.start();
        public void move()
            //_ball.move();
            this.repaint();
        public void go (boolean g)
         //if (g) _ball.setAngleIncrement(_da);
            //else _ball.setAngleIncrement(0);
        public void setSpeed(int degrees)
         _da = 2 * degrees;
         //_ball.setAngleIncrement(_da);
        public void setEccentricity(int pct)
         _ecc = pct;
         //_ball.setEccentricity(_ecc);
        public void paintComponent(java.awt.Graphics aBrush)
         super.paintComponent (aBrush);
         java.awt.Graphics2D betterBrush = (java.awt.Graphics2D) aBrush;
         _sky.paintSky(betterBrush);
         _sun.draw(betterBrush);
         _sun.fill(betterBrush);
         //_ball.fill(betterBrush);
    }I think only those classes affect the problem. Thanks.

    They all complie separately, but when I complie PlanetApp which creates the frame it has the problem. It says it can't find the symbol for ball for all the methods that I call with it, such as ball.setEccentricity(...) or _ball.fill(...).  Here is the PlanetApp class.  Thanks.
    public class PlanetApp extends javax.swing.JFrame
        ControlPanel _controlPanel;
        MovingBallPanel _movingBallPanel;
        public PlanetApp (String title)
         super(title);
         this.setSize(600,500);
         this.setBackground(java.awt.Color.BLACK);
         this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
         _movingBallPanel = new MovingBallPanel();
         _controlPanel = new ControlPanel(_movingBallPanel);
         this.add(_movingBallPanel, java.awt.BorderLayout.CENTER);
         this.add(_controlPanel, java.awt.BorderLayout.SOUTH);
         this.setVisible(true);
        public static void main (String [] args)
         PlanetApp app =  new PlanetApp("Lab 7");
    }

  • I need some simple help here, worth $1 duke buck

    please tell me what I am missing here. Thanks.
    //Team Patrick, Stephen, Rich
    //Week 3 team assignment due 10/9/03
    //Joanne Kuzman instructor
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Cater
         public static void main(String[] args) throws Exception
              double feeCorporate = 500.00;
              double feePrivate = 300.00;
              double feeNonprofit = 150.00;
              double feeSpecial = 200.00;
              double taxRateC = 1.0775;
              double taxRateP = 1.85;
              char response;
              System.out.println("Welcome to Local Caterer's Company Scheduling");
              System.out.println("Please choose the type of event.");
              System.out.println
              ("Your Choices are C for corporate events,P for private events, N for nonprofit and S for Special events");     
              response = (char)System.in.read();
              System.in.read(); System.in.read(); System.in.read(); System.in.read();
              while (response != "C" && != "P" && != "N" && != "S")
                   System.in.read(); System.in.read();
                   System.out.println("Your entry can only be C, P, N, or S");
                   response = (char)System.in.read();
              if(response = "C")
                   System.out.println("This Corporate event will cost " + feeCorporate " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feeCorporate * taxRateC);
              else if(response = "P")
                   System.out.println("This Private event will cost " + feePrivate " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feePrivate * taxRateP);
              else if(response = "N")
                   System.out.println
                   ("This Nonprofit event will cost " + feeNonprofit " and Mom will manage this event");
                   System.out.println
                   ("Nonprofit events are not taxed. Please be certain to obtan a tax exempt card from the organization and keep it on file");
              else if(response = "S")
                   System.out.println
                   ("This Nonprofit event will cost " + feeSpecial " and Mom will manage this event");
                   System.out.println("Please see Mom for tax rate on these events");
              else
                   System.out.println("Invalid Entry");
                   System.exit(0);

    I am not sure which programming lang u used to program with but in java things r a bit diffrent. you had a lot of small mistakes. anyway your code should look like this (copy paste it and don't worry)
    public class Cater
         public static void main(String[] args) throws Exception
              double feeCorporate = 500.00;
              double feePrivate = 300.00;
              double feeNonprofit = 150.00;
              double feeSpecial = 200.00;
              double taxRateC = 1.0775;
              double taxRateP = 1.85;
              char response;
              System.out.println("Welcome to Local Caterer's Company Scheduling");
              System.out.println("Please choose the type of event.");
              System.out.println
              ("Your Choices are C for corporate events,P for private events, N for nonprofit and S for Special events");
              response = (char)System.in.read();
              System.in.read(); System.in.read(); System.in.read(); System.in.read();
              while ((response != 'C') && (response!= 'P') && (response!= 'N') && (response!= 'S'))
                   System.in.read(); System.in.read();
                   System.out.println("Your entry can only be C, P, N, or S");
                   response = (char)System.in.read();
              if(response == 'C')
                   System.out.println("This Corporate event will cost " + feeCorporate+ " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feeCorporate * taxRateC);
              else if(response == 'P')
                   System.out.println("This Private event will cost " + feePrivate+ " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feePrivate * taxRateP);
              else if(response == 'N')
                   System.out.println("This Nonprofit event will cost " + feeNonprofit+ " and Mom will manage this event");
                   System.out.println("Nonprofit events are not taxed. Please be certain to obtan a tax exempt card from the organization and keep it on file");
              else if(response == 'S')
                   System.out.println("This Nonprofit event will cost " + feeSpecial +" and Mom will manage this event");
                   System.out.println("Please see Mom for tax rate on these events");
              else
                   System.out.println("Invalid Entry");
                   System.exit(0);

  • TS1398 I have tried everything of the above multiple times!!! previously the wi-fi was connecting perfectly in all locations. Now it is Unable to connect to the WI-FI and even if it does is for 2 sec. I need some further help please.

    My wifi does not seem to work.
    It always appears the "unable to join the network ....." error message, as in the past it worked perfectly fine.
    I have tried all the "apple support" options. I have even restored my iphone fully.
    Sadly there is no apple store near by.
    Do you suggest anything else!?
    Thanks !!

    My wifi does not seem to work.
    It always appears the "unable to join the network ....." error message, as in the past it worked perfectly fine.
    I have tried all the "apple support" options. I have even restored my iphone fully.
    Sadly there is no apple store near by.
    Do you suggest anything else!?
    Thanks !!

  • Need some quick help - fairly urgent!

    I've just taken over a new job and have been the task of finishing the new brochure for Christmas, there's not a lot to do but a lot of the measurements need changing
    This is the layout I'm dealing with..
    All the boxes have been made in Illustrator
    The text has been done in In'Design and it seems every piece of text is it's own box if that makes sense
    My question is, if I select the whole specification box - copy, paste it into Adobe Illustrator and change the text there, then paste the edited box back into In-Design, will I lose quality when it gets printed?
    I'm worried if I do it this way it may come out blurred? Or am I just worrying about nothing?

    I couldn't find an Illy file in the end and have ended up creating tables in ID to replicate what was already there!
    Didn't take very long and I guess if I didn't do it now, I'd come across the same situation next time!
    Date: Wed, 30 Nov 2011 08:48:07 -0700
    From: [email protected]
    To: [email protected]
    Subject: Need some quick help - fairly urgent!
        Re: Need some quick help - fairly urgent!
        created by Peter Spier in InDesign - View the full discussion
    There certainly are viable "quick fix" solutions proposed here, and if the dealine is looming and this file never needs to be touched again I might be tempted, but they are only postponing the pain for a file that needs periodic updates, and I wouldn't waste effort on them, myself, when that time can be put toward a proper rebuild now if that's the ultimate goal.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4054725#4054725
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4054725#4054725. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in InDesign by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Need a little help please    Airport Express

    Need a little help please.
    I am trying to set up a wireless network at my home using Airport Express.
    I have a regular phone line running in to I assume the modem. From there, there is an Ethernet cable running from that box to the back of the PC. My question is, I think, which of those do I unplug and plug into the Airport Express, the one on the back of the PC or the one that is in the back of the modem, or is this totally wrong.
    Any help would be appreciated…
    Thanks
    In advance…
    PS I have the manual but to me it is not very clear…

    Your connection sequence would look like this:
    Internet > Modem > AirPort Express >>>wireless to your computers.
    This means that you would unplug the cable that is now connected at the back of your PC and move that connection to the AirPort Express.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click Continue to follow the guided setup. On the third page, you will choose the option to "Create a wireless network" and continue the setup.

  • Need some URGENT help with 3 DVD mastering issues PLEASE! :

    Hi there,
    Firstly, I am running DVD SP 3.0.2 on Mac OS 10.4.7 on a G5 Dual 2 GHz 3Gb Ram plenty of HD space...
    I am creating a DVD with: An intro sequence, a main menu, 4 sub menus, and 4 sections with around 12 chapters each.
    I am having some big problems, and a pretty stuck. I will lest them separately below, numbered. If you are able to help, please refer clearly to which number you are helping with. Any help is MUCH appreciated! Many thanks!!
    1. Each of the 5 menus (1 main, 4 sub) have a background video, and a separate audio track. I added the background videos by simply dragging them to the assests panel, then from there onto the menu editor window. They are created in FCP and are properly encoded. However, when I click the motion button, or use the simulator, the videos do not show up. The music plays, but all i see is plain black.
    What is going on?!?!?!
    2. I am really struggling with rollover buttons. I have custom created buttons, and I wand them to have a soft red glow around them when hovered over. HOW ON EARTH DO I ACTUALLY DO THIS??
    The buttons are in photoshop so can be exported with/without background/glow in any format.
    3. Is it possible, once I have got the above rollover working, to have an image to the right hand side of my buttons which changes with the the button rollover. i.e. hover over button 1, see image 1. hover over button 2, image changes to image 2.
    PLEASE PLEASE give any help you can, I have a deadline coming up and am quite stumped. Thanks again!!

    I am still having problems regarding issue Number 1. PLEASE ANYONE HELP?!
    Sorry, I'm not sure about the motion menus. I avoid those whenever possible. But you might click on the menu in the storyline tab (whatever it's called -- the hierarchical view with the disc, tracks, slideshows, etc.) and look at the properties and see if there's anything you have to enable specifically for motion. And be sure the motion button is on on the main display/preview area, but it sounds like you already know how that works.
    For your information, here is a screen grab of the menu I am trying to create:
    http://www.redhavoc.co.uk/stuff/menu.jpg
    I think it is obvious that when a button is hovered over, I want it to glow red, and the image to the right will change to match the respective button.
    IS THIS GOING TO BE POSSIBLE????
    Yes.
    First, your menus have to be layered menus. Unfortunately, there's no way to convert non-layered menus to layered menus, so if you already have non-layered, you'll have to just delete them and create new layered menus. The button (and menu item) to create a layered menu should be right by the normal new-menu item.
    Next, the graphical work is all in Photoshop.
    Side tip: You may already know this, but I found it's best to use 640x480 for the Photoshop document. When I do text and leave it as a text object in the Photoshop file, it resizes poorly in DVDSP. So this ends up being another 720x480 vs. 640x480 square/rectangular pixel conversion thing. DVDSP plays in the 640x480 world, at least as far as the designer can see. So I keep my images at 640x480, and it doesn't have to resize, and everything looks right.
    Moving on... Set up your basic background, the part that won't change (or will have other things covering it, like for your square image).
    Then put in all the buttons and images you'll be using, each part in a separate layer. This could have fifteen buttons (you have five buttons, and there can be three versions for each -- inactive, selected, and activated versions) and five or six square images (you said one for each button, and you might want a blank default if, say, you want to add a "back" button on the menu and want some blank or default image for the square when they're on the "back" button).
    Sometimes people don't bother with a separate "active" button state, but you usually want some visual feedback that they clicked the button. Also, I usually just build the default (unselected) button into the background; that's less hassle later on, and it will just draw the selected or activated buttons over that when the user is on that button.
    Line up all your buttons and images. All the square images lined up perfectly on top of each other, all the buttons in the right places (so you'll have three buttons stacked on top of each other in each spot). Give each layer a short but quickly recognizable name, and line them up in a consistent order. (button1-default, button1-selected, button1-active, button1-squarepicture, then button2-default, ... etc.) Photoshop and DVDSP don't care, but it makes it easier for you later.
    Note that earlier versions of DVDSP won't show Photoshop layer effects. (They handle layers, just not the effects, like inner glow, outer bezel, etc.) I don't remember when they changed this, but I think it was version 4.something. So if you're using that method to make your buttons glow, you may have to flatten each selected or active button layer, and you may even need to create a dummy blank layer underneath it first to give it something to flatten onto.
    Save the file as a standard Photoshop file (.psd). Drag the file onto your DVDSP layered menu and set it as the background.
    Now, in DVDSP, create all your buttons. Just drag boxes over/around the button pictures you have. Feel free to make them extra-big; users won't see the actual area you've selected, and bigger areas makes it easier for people to hit them if they're using a mouse on a computer to watch the DVD. You can point the buttons to their targets now if you want, and set the end jumps on the tracks if you want. (I tend to set the end jumps on the tracks so they automatically select the button for the next track.)
    Now's the fun part, since it will actually hook everything up and should be easy if your naming layer order were consistent. Click on the layered menu (in that hierarchical view) and look at the properties window. (Sorry I can't remember the technical names for all these windows; I'm doing this all from memory. So feel free to ask more questions if you can't find what I'm talking about.) One of the properties tabs should have a grid of checkboxes with a list of your layers. Make sure the background is checked for all of the states. Then check the layers you want to show for each button state, as well as the corresponding square image to show for each.
    Again, I'm doing this from memory, and I can't remember exactly how things are listed in that grid. But I remember it keeps your layers in the same order you put them in the Photoshop file and shows you those names, so it should make it easy to go down the list and check the right boxes.
    And another side tip: You can update the Photoshop file, but once you've put it in DVDSP, if you change the layer order, it will screw up the check boxes you checked. It always shows you the layer names correctly, but it keeps the checkboxes in DVDSP simply assigned to the layer number, so the fifth layer will keep the same checkboxes even if you juggle them so some other layer is now the fifth layer. So if you do juggle the layers in Photoshop, go back and fix the checkbox list in DVDSP.
    I put a sample Photoshop file based on yours in
    http://dan.black.org/layered-menu-sample.psd
    It's quick and dirty, but shows the layer layout, and you should be able to drop it on DVDSP to play with. (I also won't leave it there forever, maybe a few weeks, so anybody reading this in a month or more probably will get a 404 for that url.)
    Again, doing this from memory, so feel free to ask if anything doesn't work or doesn't make sense.
    G4/dual867   Mac OS X (10.4.5)   2GB/0.8TB

  • I need some serious help with Oracle Database....PLEASE!!

    I am using Microsoft Virtual PC 2007 that has Oracle Database 10g and Wondows XP installed on it.
    Database instance is DOWN but that is not the problem
    Listener is UP
    Agent Connection to Instance is DOWN, and I cannot get this running!
    How can I fix this problem? I am not an expert, but I have been trying for a long time to fix this issue, but I can't. It just came to the point that I want to grab my pc and throw it across the room.
    Error message: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    Here is my LISTENER.ORA file:
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.109)(PORT = 1521))
    Here is my TSNNAME.ORA file:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.109)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Once again, I am not an expert, so please try to explain it as simple as possible...I know, I am an idiot when it comes to networking issues.
    if you guys need some more information, just let me know!
    Thank you!

    What I mean is that I can get the Instance UP with no problem, but the Connection with the Instance is the problem.
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-NOV-2009 21:38
    :06
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:144 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: PAOLOSCAMARDELL, pid: 2576>
    (ADDRESS=(PROTOCOL=tcp)(HOST=paoloscamardell)(PORT=2307))
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:144 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-NOV-2009 21:52
    :03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 25-NOV-2009 11:50:27
    Uptime 0 days 10 hr. 1 min. 39 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
    ra
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.109)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>

  • I need some simple examples to start with for Oracle ESB

    Hi All,
    Please share some simple examples to startwith for Oracle ESB.
    I need to understand, what are the files are created, once created an ESB project.
    What is the use of the files how to edit them with out using JDeveloper.
    Iam trying to create a simple example.
    I would like to create a file which has only "HELLO" in that file, simple text file inside a folder "INPUT" in my c:\ drive.
    I wanted to create a ESB service which picks up the file and add a string to it like "HELLO" + "ESB" and drop this file into "OUTPUT" folder in c:\ drive.
    How do i do that. I tried to do it when i deploy the integration server connection is gettting hit badly. I dont see that connection any more and i dont see that connection in my JDeveloper.
    I dont want to start with existing code.
    Please help
    Regards,
    Vijay.B
    Message was edited by:
    Vijay.B
    Message was edited by:
    Vijay.B

    Hi,
    If you want to do it from scratch you can basically do the following:
    Make sure you have created an application server and integration server connection in JDeveloper.
    1) Create a new JDeveloper project of type ESB project.
    2) Possibly add a ESB System/Group (open the esb file and click "Create System/Group") to group ESB projects.
    3) Create an XML schema describing your input XML file. Probably one element of type xsd:string.
    4) Create an example XML file which is well-formed and valid according to the XSD from step 3.
    5) Create a new File adapter (inbound/read). A routing service is automatically created.
    6) Create a new File adapter (outbound/write).
    7) Create a routing rule in the routing service in which you invoke the write method of the outbound file adapter. Possibly add a transformation using the XSL mapper.
    8) Deploy the ESB project to the server.
    9) Drop your XML file (from step 4) in the directory in which the inbound file adapter is polling.
    10) If it is ok, the file should be picked up, transformed and dropped in the outbound directory. A new ESB instance should be visible in the ESB console.
    See what files are generated on the filesystem in each of the above steps.
    Regards, Ronald

Maybe you are looking for

  • Apex 5 not working with Chrome, works perfectly with firefox.

    Hi All, So after a few days of trying to upgrade my 4.2 PDB to 5.0. Finally, Success. I have encountered a new issue. Apex works fine under Firefox, but the same cannotbe said for google chrome.  Even though I can log in via chrome, certain things do

  • Firefox wont load at all!

    I open firefox and it never loads any websites. The screen and website bar stay blank. This has never happened before. I turned my computer off last night, but I honestly don't see how that could do anything. Please help!

  • Can my USB Drive be configured to power off when the iMac is powered off?

    I am using a Lacie 500GB external USB drive. The drive remains powered on when my iMac is powered off. Is there any way to have the drive automatically power off?

  • RPCIPE00-Error

    Hi, I was looking at the SAP program RPCIPE00-program to generate posting run numbers. The issue is, it is giving an error 'incorrect document' when i ran it for a pernr for a period. The reason it says is that the cost center does not exist as of th

  • Applet still not initialized.

    Hello, I am a student attempting to complete a GUI Currency Converter. My applet will not initialize. I have read through some of the Applet initialization errors but am having some trouble understanding where to proceed. My code is rather large, abo