Re: Easy Programming Question

Hi stardust,
if the function would be written as in the example, it would have to following form:
int smallNails, largeNails;
inputAmounts(smallNails,largeNails);
public void inputAmounts(int param1, int param2)
  System.out.print("Enter number of small nails: ");
  param1 = Keyboard.readInt();
  System.out.print("Enter number of large nails: ");
  param2 = Keyboard.readInt();
  }This would not work because of a simple reason:
The readint() function would modify the local variables param1 and param2 but there is no way to copy these values back to to original parameters smallNails and largeNails. So all input would be lost as soon as inputAmount() ends.
Hint for finding a solution:
Create a new object "NailCount" with two variables "smallNails" and "largeNails". Create an instance of this object in the main function and use it as parameter to InputAmount(). InputAmount() can then modify the smallNails/largeNails in "NailCount".
Andreas

Andreas_S. wrote:
Hint for finding a solution:
Create a new object "NailCount" with two variables "smallNails" and "largeNails". Create an instance of this object in the main function and use it as parameter to InputAmount(). InputAmount() can then modify the smallNails/largeNails in "NailCount".Side effects are icky. Use return values.

Similar Messages

  • Is there an easier program than iMovie 11?

    Is there an easier program than iMovie 11? Is there something like iMovie HD 6?

    I still use iMovie HD 6 in Mountain Lion. The only issue for me is iMovie will import HD video (1080i/720i) as interlaced and not progressive (1080p or 720p). Interlaced vs Progressive HD
    If that is not a factor to you, iMovie HD 6 is good to go.

  • Havent a clue! Please help! Easy ABAP Question!

    Helly Gurus
    I am loading from a dso to a cube and doing a lookup on a second dso.
    eg
    'Name' is in the DSO1
    I lookup 'Address' from DSO2
    Then load to the cube.
    The problem is there may be more than one address so although I have coded the lookup to
    find all addresses, I do know how to get these into my results.
    Only the first address it finds is there.
    loop at DATA_PACKAGE.
        select * from DSO1 where
        NAME = DATA_PACKAGE-NAME.
        if sy-subrc = 0.
          move-corresponding DSO2 to itab1. collect itab1.
        endif.
        endselect.
      endloop.
    What do I need to do to get all of the results?
    I am in 3.5 so do not have the use of an End Routine.
    Thanks
    Tom Tom

    you need to do several treatments in fact you need to add records on the data_package (by the way it is not an easy ABAP question as you mentioned !)
    So
    Treatment 1: select all the records from ods2 table of adresses outside the loop
        select names adresses
        from ods2
        into table g_itab_ods2
          for all entries in data_package
          where name eq data_package-name.
    Treatment 2: delete double records of the internal table.
        delete adjacent duplicates from g_itab_ods2 comparing names adresses.
    Treatment 3: loop over the data_package. Within this loop read the internal ods2 table and loop over it to assign the corresponding adresses. Then append the results to the temporary data_package_tmp and move all the records to the initial data_package.
    loop at data_package assigning <data_fields>.
       read table g_itab_ods2 into l_g_itab_ods2
          with key name = <data_fields>-name.
          if sy-subrc eq 0.
            loop at g_itab_ods2 assigning <adresses>
            where name                = <data_fields>-name.
              <data_fields>-adresses= <adresses>-adresses.
              append <data_fields> to lt_data_package_tmp.
            endloop.
          endif.
        endloop.
        data_package[] = lt_data_package_tmp[].
    free lt_data_package_tmp.
    this should do what you want to do. hope this could help you out.

  • I have a programming question

    Hi
    I have a programming question here. I spent a lot of time doing it, but I still can't get it. Here is the question :
    Write a method called countTo that takes one integer as a parameter and prints a
    comma-separated list of the numbers from 1 to the value of the parameter, or an
    appropriate error message if the parameter is less than one. In either case (if a list
    of numbers is printed, or an error message is printed), after printing, the cursor
    should be advanced to the next line.
    For example, if the parameter has a value of 1, the method should just print the
    the value 1 to the screen followed by a new-line character. If parameter has a value
    of 5, the method should print the following (exactly as shown, make sure there is
    no comma after the last value, and that all values are on one line with no spaces
    between them):
    1,2,3,4,5
    This method should only print to the screen, and should not return a value.

    I have a programming question here. I spent a lot of
    time doing it, but I still can't get it. Please post what you have done so far.

  • Calendar Program Question

    Hello! Among the lab assignments I have done for my class, I have this calendar project I've been working on for a good while now. My only question is how do I set the days of the month properly with the empty columns I have encoded in the program? This is a long program and I really haven't put any time into making it look neat, so bare with me!
    What I get so far in the interaction pane is:
    March  2008
                  1  2  3
      4  5  6  7  8  9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30 31
    and what I'm looking for, obviously, is:
    March  2008
                        1
      2  3  4  5  6  7  8
      9 10 11 12 13 14 15
    16 17 18 19 20 21 22
    23 24 25 26 27 28 29
    30 31> Sometimes I over look something minor, but I'm stumped and this is the ONLY thing I have to do to finish this project!
    /* Calendar Program that displays the days of the
    * month between January 1800 to December 2099
    import javax.swing.JOptionPane;
    public class CalendarProgram
      public static void main(String[] args)
        String monthStr, yearStr, displayStr;
        int year, firstTwoYear, lastTwoYear;
        int daysinMonth = 0, dayofWeek = 0;
        int firstDayofMonth = 1;
        //asks user for input, and then checks if monthStr matches with the user, then displays it.
        monthStr = JOptionPane.showInputDialog(null, "Please enter the month (e.g. January):");
        if(monthStr.equals("January"))
            displayStr = monthStr;     
        else    
        if(monthStr.equals("February"))
            displayStr = monthStr;
        else
        if(monthStr.equals("March"))
            displayStr = monthStr;
        else
        if(monthStr.equals("April"))        
            displayStr = monthStr;
        else
        if(monthStr.equals("May"))
            displayStr = monthStr;
        else
        if(monthStr.equals("June"))
            displayStr = monthStr;
        else
        if(monthStr.equals("July"))
            displayStr = monthStr;
        else
        if(monthStr.equals("August"))
            displayStr = monthStr;
        else
        if(monthStr.equals("September"))
            displayStr = monthStr;
        else
        if(monthStr.equals("October"))
            displayStr = monthStr;
        else
        if(monthStr.equals("November"))
            displayStr = monthStr;
        else
        if(monthStr.equals("December"))
            displayStr = monthStr;
        //asks for the year from user
        yearStr = JOptionPane.showInputDialog(null, "Please enter the year between 1800 and 2099:");
        year = Integer.parseInt(yearStr);    
        //displayStr that displays the user's month and year.
        displayStr = monthStr + "  " + yearStr + "\n";
        System.out.print(displayStr);
        //computation of the first two digits and last two digits of the year.
        firstTwoYear = year / 100;
        lastTwoYear = year % 100;
        //HUGE computation to check the dayofWeek variable. This should compute where the first day of the month will display on the calendar.
        if ((lastTwoYear >= 0) && (lastTwoYear <= 99))
         dayofWeek = lastTwoYear * (1/4);
        if (firstTwoYear == 18)
          dayofWeek = dayofWeek + 2;
        else if (firstTwoYear == 19)
          dayofWeek = dayofWeek;
        else if (firstTwoYear == 20)
          dayofWeek = dayofWeek + 6;
        //Checks to see if a given year has a leap year or not.
        boolean leapYear =
          (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);
        if(monthStr.equals("January"))
          daysinMonth = 31;
          if(leapYear)
             dayofWeek = dayofWeek + 6;
           else
             dayofWeek = dayofWeek + 1;
        else    
        if(monthStr.equals("February"))
           if(leapYear)
             dayofWeek = dayofWeek + 3;
             daysinMonth = 29;
           else
             dayofWeek = dayofWeek + 4;
             daysinMonth = 28;
        else
        if(monthStr.equals("March"))
             dayofWeek = dayofWeek + 4;
             daysinMonth = 31;
        else
        if(monthStr.equals("April"))
             dayofWeek = dayofWeek;
             daysinMonth = 30;
        else
        if(monthStr.equals("May"))
             dayofWeek = dayofWeek + 2;
             daysinMonth = 31;
        else
        if(monthStr.equals("June"))
             dayofWeek = dayofWeek + 5;
             daysinMonth = 30;
        else
        if(monthStr.equals("July"))
              dayofWeek = dayofWeek;
              daysinMonth = 31;
        else
        if(monthStr.equals("August"))
              dayofWeek = dayofWeek + 3;
              daysinMonth = 31;
        else
        if(monthStr.equals("September"))
              dayofWeek = dayofWeek + 6;
              daysinMonth = 30;
        else
        if(monthStr.equals("October"))
              dayofWeek = dayofWeek + 1;
              daysinMonth = 31;
        else
        if(monthStr.equals("November"))
              dayofWeek = dayofWeek + 4;
              daysinMonth = 30;
        else
        if(monthStr.equals("December"))
              dayofWeek = dayofWeek + 6;
              daysinMonth = 31;
        dayofWeek = dayofWeek + firstDayofMonth;
        dayofWeek = dayofWeek % 7;
        //this checks if dayofWeek equals 0, it will be placed on the 7th column (Saturday)
        //else the dayofWeek will enter 1-6 like normally (Sunday-Friday)
        int colnum;
        if (dayofWeek == 0)
          colnum = 7;
        else
          colnum = dayofWeek;
        for(int i = 0; i < colnum; i++)
          System.out.print("   ");
        //Displays days of the month and inserts empty columns before 1st day
        for(int day = 1; day <= daysinMonth; day++)
       if (day < 10)
         System.out.print("  " + day);
       else
         System.out.print(" " + day);
       if ((colnum + day) % 7 == 0)
         System.out.println();

    Well, I could move the displayStr = monthStr into the other section of the code where the months are at, but as far as using java.util.Calendar/GregorianCalendar classes the professor made no recommendation of it (though it would be easier no doubt.) That's what he told us to use to display the month properly. I did look in the web for other examples and they did use the java.util.Calendar/GregorianCalendar classes, but I have no idea how to properly implement it. Besides, I was not asking about redundancy.
    After I made the thread, I did work on it a little bit more, and I changed:
       if ((lastTwoYear >= 0) && (lastTwoYear <= 99))
         dayofWeek = lastTwoYear * (1/4); into:
    if ((lastTwoYear >= 00) && (lastTwoYear <= 99))
         dayofWeek = (int) (lastTwoYear * .25);The year 2008 was properly displaying everything on the correct dates, but the other years are off by a few days. So now its either the computation in the long sequence of dayofWeek variable, or (what the professor mentioned in the assignment) it could be:
         loop (for the number of days in the month)
           displayStr = displayStr + <digit in field width of 3>
           if last digit in row, then append �\n� to displayStr}The whole loop, including the "append "\n" to displayStr" doesn't make much sense. So that could be where I'm having problems.

  • Please answer a programming question for an admin

    I'm not a programmer (although my interest is growing), so I can't answer this question in a discussion regarding how Win32API w/OLE and COM is SO much better than programming for Unix/OS X applications.
    The original discussion was in regards to OS X's superior Unix based security, he devolved to this. Having only begun my venture into programming, his questions are a little above my head at this point. I'm also interested (as an amature programmer), how this would be accomplished in OS X/Unix.
    Thanks in advance.
    Here's his position:
    *(1st entry)*
    I have unsed Windows and many flavors of Unix and I have written programs in Assembler, Fortran, Pascal, Cobol, RPG, Smalltak, Basic, PowerBuilder, Delphi, C, C++, C#, Java, and Perl, and I have been programming for over 20 years, so I do have extensive knowledge about programming.
    So I have one question for you:
    If you had to build a business application that has to allow users to, spell and grammer check, and perform financial calculations, and render the HTML, how would you compare the effort to do this in Windows versus that in Linux, AIX, Solaris or any other Unix operating system?
    I can make this business application have these features in ONE DAY on Windows, because COM and OLE lets me, use Word to spell and grammer check, Excel to do the financial calculations, and IE to render the HTML!
    I make my living building complex customized business software, and Windows allow me to build these applications by myself in weeks, when it would take me and a team of programmers months to do these same things in Unix because of the lack of an the Win32 API, COM, and OLE, or I would have to BUY third party libraries that did these things, and deal with the licensing, versioning, and vendor problems that go with them, and none of those third party librabries would be close to Word, Excel, and IE in CAPABILITY!
    HONESTLY tell me and others reading this thread how you would go about create the customized business application I described above by yourself in a Unix instead of Windows, and tell us how many MONTHS or YEARS it would take you, or how you would have to BUY some other third party libraries to do what Word, Excel, and IE!
    Anyone who thinks a Unix has more CAPABILITIES than Windows, has never used Win32API/COM/OLE/.Net, and does not build customized complex business software for a living, because we people that do are the reason that you find some much customized business desktop software for Windows, and so little for any Unix.
    I have nothing against Unix, and it is great for simple business tasked server software, but for complex business tasked desktop software Windows with Win32API/COM/OLE/.Net wins hands down!
    *(2nd Entry)*
    A System administrators view of an operating system and an application developers view are entirely different, and the Win32API/COM/OLE/.NET simply make my job so much easier, and you simply don't understand because you do not have to deal with the "dirty' details of making what a user wants, which is why your definition of "integration" and mines are totally different!
    With the spell check you talked about, how will you keep in in synch with the dictionary in Word where the user is constantly adding and removing words?
    No, you would have the user to have to maintain two different spell check dictionaries, and you would totally ignore the grammer check requirement!
    Cutting and pasting data between applications is simple integration, and not the complex type that I am talking about.
    Can you make your application display and use the MacGourmet menus appear in its own window, and to access and use the MacGourmet functionality (ie. search for a recipe) in its own window?
    Give me one example of a Unix application that can display the menus of another application, yet alone control its features!
    Of course you can't, because you need COM and OLE!
    I am quite familiar with different flavors of Unix, but those operating systems do not have the rich API and program integration features namely COM and OLE that Windows has, because it violates the Unix idea of security by process isolation!
    Yes that idea of process isolation keeps the operating system safe from malicious code in applications and from one application taking the others down, but you lose the power of programs working together, and you simply cannot build the type of customized business applications that I build by myself, without reinventing the wheel over and over and without having a large team with lots of programmers.
    For example, my customers and millions of others spend all day working in Word and Excel, and the Windows idea that I can transparently integrate my complex business applications right in Word and Excel menu, and into their templates and macros, is why third party developers like me prefer Windows over Unix, regardless of how much better security in Unix is.
    Do not get me wrong, Java improves business application development on Unix, but unfortuantely it is not feasable to rewrite ever legacy application in Java, and Java does not integrate well with other programming languages.
    I used to code business application for both IBM MVS and Sun Solaris, and I never want to go back to those "bad" old days again, once I took the time to learn how to PROPERLY code using Win32API/COM/OLE/.NET!

    At risk of feeding the troll I'll wander in here:
    NOTE: Since this is an Apple programming boards and I have limited experience programming on traditional Unix systems (and most of that in college) I will confine my answers to the area I know.
    If you had to build a business application that has to allow users to, spell and grammer check, and perform financial calculations, and render the HTML, how would you compare the effort to do this in Windows versus that in Linux, AIX, Solaris or any other Unix operating system?
    I can make this business application have these features in ONE DAY on Windows, because COM and OLE lets me, use Word to spell and grammer check, Excel to do the financial calculations, and IE to render the HTML!
    Note that this scenario assumes the user has Microsoft office installed. The person argues that they don't have to purchase libraries to program but what they are effectively doing is simply transferring that cost to user. I don't have to purchase libraries but everyone of my users needs to. Good for you, very good for Microsoft but bad for your customer - IMHO. OK, I know "But all Windows business users have Office installed already." When it comes free with the system then I'll retract my objection.
    Under OS X and Cocoa many of these functions are intrinsic to the system layer and do not require any applications to be installed. Using Cocoa you can write a simple Word processor that has rulers, full font manipulation (including kerning, spacing and leading), Document Save and Load, Printing, Export to PDF as well as spell-checking in under 10 lines of actual code. Adding a custom file type and icon for full system integration will add another 5 minutes to your programing.
    In case you think I'm blowing smoke here is a tutorial from 2002 (yes, this has been possible for over 5 years) outlining the 8 line Word Processor build in Cocoa. http://www.stone.com/TheCocoa_Files/What_s_sofunny.html
    And yes, Cocoa also includes Webkit so I can add full HTML rendering by dragging in a WebKit window to my user interface. For an experienced Cocoa programmer this certainly sounds like less than a day of programming - in fact it sounds like a good tutorial for a middle-experienced training day or 2 day class in Cocoa.
    I won't include the link to the 1 line web browser you can build in Cocoa using Webkit because it's shorter than the description. Feel free to search for it if you want to.
    HONESTLY tell me and others reading this thread how you would go about create the customized business application I described above by yourself in a Unix instead of Windows, and tell us how many MONTHS or YEARS it would take you, or how you would have to BUY some other third party libraries to do what Word, Excel, and IE!
    BUT this is all done from the stock system that is on every OS X computer not simply those with Office installed. Obviously you'd need to add some features that were more complicated than this - because any halfway decent programmer could turn this stuff out - and polish takes a while but to meet the requirements of the challenge it would take 2 days tops.
    Is every *nix programming environment like this? I don't know I can only answer for the system that I have experience with and is the concern of this board. If you really have questions regarding *nix programming then I suggest you find an appropriate board and troll^H^H^H^H^H ask there.
    If you're ever serious about programming on the Mac feel free to stop by and actually take a look at it. I think you'll be surprised.
    =Tod

  • Trouble understanding programing question.

    Hey guys,
    Got a program im supposed to write its bonus and I have already done the original program. Problem is Ive read the instructions and they are kinda confusing to me. If I could just understand what they are saying then it will make this much easier. So if anyone can shed some light on what im missing id be thankful.
    Heres the program instructions.
    Question 2: Design and implement a recursive method that implements the factorial method n!. The factorial method n! is defined by
    n!= n*(n-1)*(n-2)*�*1
    Place the method in a class that has a main that tests the method.
    Does this just mean I need to make a method that finds the factors of a variable (e.g the factors of 10)? Which would be 2 and 5 right? Or would this mean make a recursive method that finds the factors of 10*n. like 1 * 10 = 10, 2 * 10 = 20, 3 * 10 = 30 etc etc.... And Im guessing that that algorightm cant be used in a program. In other words the *....*1 and n! are not correct syntax and that algorithm is just a abstract example to give me some direciton im not actually supposed to try and replicate it exactly as it is right? Usually I dont have problems with instructions but this one just confused the hell out of me. Any help would be great thank you. I would have asked the teacher but I thought I understood it and now I dont see the profeesor until the day its due and also she has a foreign accent so its hard for me to understand.
    Message was edited by:
    venture

    No. You have to do the factorial.
    3! = 3*2*1 = 6
    4! = 4*3*2*1 = 24
    etc
    You should see a pattern ie 4! = 4 * 3!. In the
    question you were given the equation for calculating
    it. If you can't do it Google is your friend becuase
    it has been done millions of times before.
    Slow! Well it is hard to type with these fins.
    Message was edited by:
    flounderThat makes sense thank you.

  • Easy swing question for Java friends

    Hi could somebody test this short application and tell me why the "DRAW LINE" button doesnt draw a line as I expected?
    thank you very much!
    Circuitos.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.awt.geom.*;
    public class Circuitos extends JApplet {
         protected JButton btnRect;
         protected Terreno terreno;
         private boolean inAnApplet = true;
         //Hack to avoid ugly message about system event access check.
         public Circuitos() {
              this(true);
         public Circuitos(boolean inAnApplet) {
            this.inAnApplet = inAnApplet;
              if (inAnApplet) {
                   getRootPane().putClientProperty("defeatSystemEventQueueCheck",Boolean.TRUE);
         public void init() {
              setContentPane(makeContentPane());
         public Container makeContentPane() {
              btnRect = new JButton("DRAW LINE");
          btnRect.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                terreno.pintarTramo();
              terreno = new Terreno();
              JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              panel.add("North",btnRect);
              panel.add("Center",terreno);
              return panel;
         public static void main(String[] args) {
            JFrame frame = new JFrame("Dise�o de Circuitos");
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              Circuitos applet = new Circuitos(false);
              frame.setContentPane(applet.makeContentPane());
              frame.pack();
              frame.setVisible(true);
    }Terreno.java:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.geom.*;
    public class Terreno extends JPanel {
         Graphics2D g2;
         public Terreno() {
              setBackground(Color.red);
              setPreferredSize(new Dimension(500,500));
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
          g2 = (Graphics2D) g;
          g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);    
         public void pintarTramo () {     
              Point2D.Double start   = new Point2D.Double(250,250);
              Point2D.Double end     = new Point2D.Double(250,285);
              g2.draw(new Line2D.Double(start,end));            
    }

    I don't think the date I became a member has anything to do with it. Yes, I signed up a year ago to ask a question or two when I didn't know anything. It wasn't until recently have I started to use this forum again, only to try and help people as well as ask my questions. It took me a year to get to this point to where I can actually answer questions instead of just asking. So don't be silly and judge a person based on their profile.
    Secondly, I agree with you, the search utility is great. I use it all the time and usually I'll find my answers, but if I don't is it such a pain in the butt for you to see the same problem posted again?? I know how much you want people to use the resources available before wasting forum space with duplicate questions, but it's not going to happen. Some people are not as patient and you being a butt about it won't stop it.
    My point in general is that there are nice ways to help people and even rude ways, and your comments at times come across rude to me, even condescending. You have a lot of knowledge, therefore certain things seem trivial to you... but try to understand where some of the new people are coming from. The Swing tutorial is extremely helpful but if you don't understand the concept of programming or java that well... then it can be overwhelming and you don't know where to start. It's a huge tutorial and when people are stuck they just want an answer to their one question. Most figure it's easier to ask someone who already knows instead of reading an entire tutorial to get their answer.
    I've learned by both methods, by taking the time to research it myself and by asking a lot of questions. I have the time. Some don't. Please realize that not everyone is like you and they will continue to ask whether you like it or not. You have a choice, either help them or not.

  • Pine (mail program) question

    If I install Pine on my PowerMac G3 Blue and White at home and then SSH in to that machine using my iBook, when I execute Pine on the PM G3 B&W, I will be able to see and read my email on the iBook screen. Is that so?
    What I am getting at here is, since I'm in the Terminal, there is no need for X11 or VNC in order to present the output from the remote PM G3 B&W on to the iBook. Correct?
    Also, since Pine reads the emails on the server, when I return home to the PM G3 B&W and run Apple Mail, it will still be able to pull down from the mail server the emails I already read. Correct? I want Pine to leave the emails on the server and not mark them as read or delete them.
    One more question. How does Pine handle attachments such as Excel spreadsheets, .jpg's or movies? I doubt they can be viewed. I just want to be sure it won't strip them out and delete them from the mail server upon execution of Pine.

    All of what you asked is true, except for one thing. With 10.4, Apple's Mail.app no longer uses the mbox format, so my cheezy workaround has been to have two copies of each email, one I can access with pine, and the other I can access with Mail.app. It used to be you could create symbolic links to Mail.app's mbox files, but not anymore.
    You can configure pine to open attachments in your preferred programs. For remote display, you can use X-windows based display options. For local display, you can use whatever you want.
    In practice I often find it is easier to have pine save the attachment to your desktop and then move the file via scp.
    I read mail like this all the time. Pine is great. Another option you may with to consider is squirrelmail, which is browser based, but then you have to run a webserver, imap server, and so on.

  • Easy runtime question

    So I bind a variable in an ActionScript and store a value at
    compile time. Now I want to update that var at runtime, say
    calculate a meal.

    I had the following Java versions listed on one computer and one of them would not uninstall, so I am wondering how much of a problem that might be for the end user.
    Java 2 Runtime Environment, SE v1.4.2_03
    Java(TM) 6 Update 3
    J2SE Runtime Environment 5.0 Update 6
    Java 2 Runtime Environment Standard Edition v1.3.1_15 (this one is "stuck" within "Add/Remove Programs" listing)
    After removing all of the above Programs and rebooting the computer I installed "jre-6u7-windows-i586-p.exe" which translates as "Java(TM) 6 Update 7" (137.00 MB) for us simple humans to read.
    Suggestions:
    It would be great if the naming conventions of these programs made a little more sense or if the Downloads area of the Java web site had a Frequently Asked Question (FAQ) prominently featured at the top of the page explaining the history of these versions. I have been supporting the installation of these Plug-ins or Programs for several years and feel it has not gotten any easier with regards to names.
    It might even be nice to see a Timeline of versions showing:
    Java(TM) 6 Update 3, Released January 2008
    Java(TM) 6 Update 7, Released October 2008
    This would allow people using specific pieces of older software, as mentioned above, to have some idea of whether the version of Java they find on their machine is the appropriate version for some in-house application that was written and released in December 2007 (for example).
    If a web-based office application I use was written in February of 2008 then I might feel confident "Java(TM) 6 Update 3" is the right version for me!
    If this is confusing for me as an I.T. support professional, I can only imagine how the End Users view these cryptic file names!
    ~
    Edited by: Klaatu01 on Mar 9, 2009 9:49 AM
    Edited by: Klaatu01 on Mar 9, 2009 9:53 AM

  • General Game Programming Questions

    Hey All,
    I'm a reformed C# / VB.Net MMOPG game programmer who want's to take a crack at making MMORPG's using Java. Mainly because I'm tired of paying the big $$$ for M$'s products when I'm finding Java has a nice assortment of high quality RAD tools and the such for next to nothing, if not free. The only free IDE's for the .Net platform at the moment is a still too early in beta (buggy) to be productive with. Anyways after buying a couple of Java books and knocking them out in a week's time, I'm feeling pretty confident about making Java work for me. I do however have a few questions that the books I purchased failed to answer so here they are..
    Is it possible to compile Java applications (game clients in my case) in a stand alone executable form? I would like a install system where users can just install my game client without them having to worry about having the latest versions of Java ,etc, ie.. I want it to be a easy one click install application.. Does Java offer this? That was another thing that turns me off about the .Net platform, many people don't want to take the time to install the .Net runtime just to check out my game applications...
    I was wondering how Java handles Images, Does Java package up all your images into a .Jar file? A game client can have 100's of sprite sheets, mesh's, skins, etc, ie.. Say I were too make a Applet game client, how would java handle all the images? Would the players download the images while the applet loads?
    Well thats really all I wanted to know.... Thanks In Advanced...

    If you do a search on the forums for "java exe" or something similar, you will probably find about a billion posts asking and answering the same question. The answer is yes, but you will of course make the game windows dependent. Also I think the executable turns out to be quite large and doesn't work without its quircks... a better approach is to install the java runtime with the install of your game. User would never even notice.
    As far as how java handles images, for an applet the images will be downloaded with the applet, but will not be loaded until called upon in the program. You can package all the images into a jar file, or you can just leave them in a directory/directories, although packaging them into one jar would be faster due to downloading only one file and compression.

  • Misc Basic PL/SQL Application Design/Programming Questions 101 (101.1)

    ---****** background for all these questions is at bottom of this post:
    Question 1:
    I read a little on the in and out parameters and that IN is "by reference" and OUT and IN-OUT are by value. To me "by reference" means "pointer" as in C programming. So it seems to me that I could call a function with an IN parameter and NOT put it on the right side of an assignment statement. In other words, I'm calling my function
    get_something(IN p_test1 varchar2) return varchar2;
    from SP1 which has a variable named V_TEST1.
    So.... can I do this? (method A):
    get_something(V_TEST1);
    or do I have to do this (method B):
    V_TEST1 := get_something(V_TEST1);
    Also, although this may muddy the thread (we'll see), it seems to me that IN, since its by reference, will always be more efficient. I will have many concurrent users using this program: should this affect my thinking on the above question?
    -- ******* background *******
    So Far:<< I've read and am reading all over the net, read and reading oracle books from oracle (have a full safari account), reading Feurstein's tome, have read the faq's here.
    Situation Bottom Line:<< Have an enormous amount to do in a very little time. Lots riding on this. Any and all pointers will be appreciated. After we get to some undetermined point I can re-do this venture as a pl/sql faq and submit it for posting (y'alls call). Some questions may be hare brained just because I'm freaking out a little bit.
    Situation (Long Version):<< Writing a pl/sql backend to MS Reporting Services front end. Just started doing pl/sql about 2 months ago. Took me forever to find out about ref-cursor as the pipe between oracle and all client applications. I have now created a package. I've been programming for 20 years in many languages, but brand new to pl/sql. However, pl/sql sql has freed me from myriad of limitations in MS RS's. My program is starting to get big (for me -- I do a lot in a little) pks is currently 900 lines with 15 functions so far. Currently SP (pls) is back up to 800 lines. I get stuff working in the sp then turn it into a function and move it to the package.
    What does application do?:<<<< Back End for MS Reporting Services Web front end. It will be a very controlled "ad-hoc" (or the illusion of ad-hoc) web interface. All sql queries are built at run-time and executed via "open ref cusor for -- sql statement -- end;" data returned via OUT ref_cursor. Goal is to have almost 100% of functionality in a package. Calling SP will be minimalist. Reporting Services calls the SP, passes X number of parameters, and gets the ref_cursor back.
    Oracle Version: 10.2 (moving to 11g in the next 3 months).Environment: Huge DW in a massively shared environment. Everything is locked down and requires a formal request. I had to have my authenticated for a couple dbms system packages just to starting simple pl/sql programs.

    Brad Bueche wrote:
    Question 1:
    I read a little on the in and out parameters and that IN is "by reference" and OUT and IN-OUT are by value. To me "by reference" means "pointer" as in C programming. So it seems to me that I could call a function with an IN parameter and NOT put it on the right side of an assignment statement. The IN parameter is not passing by reference. It is passing by value. This means variable/value of the caller used as parameter, is copied to the (pushed) stack of code unit called.
    An OUT parameter means that the value is copied from the called unit's stack to the caller (and the current value of the caller's variable is overwritten).
    To pass by reference, the NOCOPY clause need to be used. Note that is not an explicit compile instruction. The PL/SQL engine could very well decide to pass by value and not reference instead (depending on the data type used).
    Note that the ref cursor data type and the LOB data types are already pointers. In which case these are not passed reference as they are already references.
    The NOCOPY clause only make sense for large varchar2 variables (these can be up to 32KB in PL/SQL) and for collection/array data type variables.
    As for optimising PL/SQL code - there are a number of approaches (and not just passing by reference). Deterministic functions can be defined. PL/SQL code can be written (as pipelined tables) to run in parallel using the default Oracle Parallel Query feature. PL/SQL can be manually parallelised. Context switches to the SQL engine can be minimised using bulk processing. Etc.
    Much of the performance will however come down to 2 basic issues. How well the data structures being processed are designed. How well the code itself is modularised and written.

  • XML BURSTING PROGRAM QUESTION

    Hello All,
    I have customized an oracle application program with xml publisher.The program prints the report in PDF format.
    My questions is where this output copied in the server .I am not able to find the pdf report in $APPLCSF/out/.
    Do i need to use XML bursting program to achieve this?If yes i am new to xml coding can anyone help in creating busting control file.
    My object is to print the pdf report to unix server directory
    THanks

    Pl post details of OS, database and EBS versions.
    >
    My questions is where this output copied in the server .I am not able to find the pdf report in $APPLCSF/out/.
    >
    The xml and PDF output of concurrent programs should be available in $APPLCSF/$APPLOUT directory.
    >
    Do i need to use XML bursting program to achieve this?If yes i am new to xml coding can anyone help in creating busting control file.
    >
    Pl see if these links can help
    http://blogs.oracle.com/xmlpublisher/2007/04/bursting_with_bip.html
    http://blogs.oracle.com/xmlpublisher/2007/04/e_business_suite_bursting.html
    >
    My object is to print the pdf report to unix server directory
    >
    Pl clarify what you mean by this.
    HTH
    Srini

  • Apple iPod Nano replacement program - question

    Hello, Apple community,
    I have a question about the new replacement program of the iPod nano 1st gen.
    The program doesn't state whether or not you get a refund or a new iPod nano (the small squared once with touch screen).
    The program says that you'll get a replacement iPod Nano, but isn't very specific if it is the new generation.
    I apologise for any spelling mistakes and such.
    Thank you for any answer,
    Pool313

    Hi lindsayfromspencerport,
    I can say it is not a scam - Apple is definitely replacing the iPods.  Once I read the article and went to apple.com, that proved it.  Apple.com would never risk another class action lawsuit over this iPod.
    My First Generation iPod was given to me at work for being the winner of a give-away drawing and about a year or so ago it overheated and erased all the info on the iPod.  Now it will only charge and drain the battery.  It no longer allows me to store any thing on it.
    I am glad that Apple is doing this exchange.  I thought I was just out of luck and was glad I had not paid full price for it.  I love my Nano and used it constantly!!!
    Just send your's in using the box and label they send you and give them 6 weeks like the apple.com website says, Apple will make good on their product.  Millions of people don't stand in line and wait weeks/months for their new products to arrive for no reason, trust me.  Oh, by the way, I know this for sure.....I work for a wireless phone service that has been dealing with Apple for Yearsssssssssssss.....and every year the same thing.  People will give anything to get a product with that apple on it. 
    Knightmanxx

  • Can't edit multiple tracks - plus 2 easy audio questions

    I have a sequence with 1 video track and 6 stereo audio tracks. I set an in and an out point. The area on the clips in the timeline between the two edit points highlights, I hit delete. Normally, the tracks between the points should disappear as the two segments come together and form one great edit.
    But all the tracks do not highlight and edit. The video track and stereo audio tracks 3+4 and 5+6 highlight and LIFT off. But audio tracks 1+2 do not highlight or edit. And the whole sequence doesn't close together where the edit should be.
    Only way I have been able to overcome this is to use the razor blade tool, cut each track individually. Highlight them all, and then hit delete.
    This didn't use to be the way. FCP used to edit through one track, 3 tracks or all tracks, no problem.
    Two audio questions. How do you stop the waveforms from drawing onto the clips in the timeline, in order to speed up FCP?
    How do you get the audio in captured clips to be a Stereo Pair, from the outset?
    Thanks to all you who help!

    Is it usual for FCP to bog down on a 4 minute piece when audio wave forms are turned on??
    <
    No. Should run fine. You get up into 6-12 audio tracks, FCP gets all moody and pouty.
    But it depends on your system's capabilities and how well you have chosen your sequence settings.
    Audio waveforms n FCP are a cruel joke compared to many other NLEs. Often easier to leave them off in the timeline, use the waveform in the Viewer and set markers for hooks in the audio tracks.
    bogiesan

Maybe you are looking for

  • MacBook Pro for FCPX

    Hey guys, To begin with, I have a GoPro Hero 3 Black Edition and usually record in 1080p at 60fps. I make videos of surfing and extreme sports with it in Final Cut Pro X. I also upload my videos to YouTube, download and watch HD movies, and just comm

  • How can I see the exact font being used for rendering ?

    When I use firebug to watch the style of any object, I see the CSS input. For the textarea I'm writing this text into, for instance, it displays "13px/1.231 Georgia,freeserif,serif". What I want to see is the result of the rendering process, in other

  • Lightroom 5 version 5.0 starts out fast, but then slows my computer to a crawl.  What to do?

    I upgraded from Lightroom 4 to Lightroom 5 after the release version 5.0 came out.  But it doesn't work well.  It starts out fast, but performance rapidly deteriourates.  And it affects every application running on my Windows 7 PC.  I assume this is

  • VC UI in BPM

    BPM Team, Please let me know In BPM Process how to select UI which is developed VC ? Regards Sri

  • Telnet/SSH as root not working

    I have freshly installed Solaris10 U5 through network installation method. After installation is over, i am not able to login as "root" over the network through Telnet/SSH What file we need to edit to disable this rule ?