I NEED SOME ASSIGNMENTS! TO TEST OUT MY SKILLS!

hey people, i have learned about if, for, and System.in.read() and stuff like that, can someone give me a project for me to work on? like homework to test out my skills? thanx

<b>> 1. if
2. for
3. while
4. switch
5. elseMy take on programming (as a beginner) is that I mostly learn by teaching myself. Of course I also ask a lot of questions too.
You know a lot of control statements, which allow you to select a path of program execution ("If the next number is divisible by 7, I'll add it to the pile. Otherwise I'll skip it"). Can you use a for loop to collect all the multiples of 7 between 0 and 50 into one pile? You'll know if you did it right because you'll end up with (1+2+3+4+5+6+7)*7, which you send to System.out.println() to see if you got the right answer.
You might want to get a book; Beginning Java by Ivor Horton is good, or Learn Java in 21 days by SAMS. Most of the work is on your own, even if you are in a class.
You're smart to look for problems to solve: learn how to take input with a JOptionPane, or use random numbers and beeps to make things interesting, or remove all the vowels from a short poem or reverse the digits in a number less than 100 or...</b>
well, i do learn from a book, "JAVA 2-a beginner guide" by Herbert Schildt, i am self taught too
i dont really understand what you wanted me to do.....
TO KAYMAN: you watch too many movies

Similar Messages

  • Pulling out my Hair, need some help from experts out there

    Hi - I have been struggling with an issue for a week now and I was wondering if one of you can help me to solve my issue. I have done numerous searches on this topic which got me somewhat in the right direction but I'm still not getting the results I want. The end objective is simple, a non-stuttering video on YouTube. Sounds simple right?
    here is what I did:
    I have recorded some aerial footage with a GoPro 3+, added some effects in After effects, brought the results over in Premiere pro for some minor editing and then used Media encoder to get it to a format that youtube likes. My detailed steps are as follows:
    -Take GoPro footage (59.94 fps, 1920 x 1080 in H.264 codec) and transcode it through GoPro studio using the CineForm codec so it plays nice with AE (I keep my 59.94 fps and same dimensions (1920 x 180).
    -Load transcoded footage in AE (I checked if my composition settings are the same as the imported transcoded footage)
    -Apply effects (3d camera tracking, add some 3d text, some lights, environment layer) and render the clip out as a quicktime lossless file (PNG) – result is 3 clips from AE that I now want to bring into Premiere Pro for some editing
    -Import PNG file in Premiere Pro (I drag the clip to new sequence item so the sequence matches the clip I import in Premiere pro)
    -I make some minor edits in Premiere Pro (some transitions between clips, nothing fancy)
    -I then render out the footage using media encoder (or directly from Premiere, tried both) with the following settings:
    Format: h.264
    Preset: custom
    Export video and audio
    TV standard: NSTC
    Frame width: 1920
    Frame height: 1080
    FPs: 29.97 or 59.94 (results/problem is the same with both fps settings)
    Field order: progressive (greyed out – can’t change it)
    Pixel aspect ratio: 16:9 – widescreen
    Profile: main
    Level: 4.2 or 5.1 (same result for both settings)
    Render at maximum depth: checked
    Bitrate encoding: VBR, 2 pass
    Target bitrate: 8 or 20 (same result with both settings but obviously larger file with higher target rate)
    Maximum bitrate: 8 or 25 (same results for both settings)
    Use maximum render quality: checked
    Audio, multiplexer etc: standard settings, no change
    The rendered video runs smoothly on my mac but when uploading this video to youtube, the video stutters. I have tried multiple settings and can’t get the video to play smooth. Any tips or suggestions are welcome!
    You can watch the video here:
    Furnace lake edit 1 - YouTube
    Thanks.

    sanderx1 wrote:
    Hi - I have been struggling with an issue for a week now and I was wondering if one of you can help me to solve my issue. I have done numerous searches on this topic which got me somewhat in the right direction but I'm still not getting the results I want. The end objective is simple, a non-stuttering video on YouTube. Sounds simple right?
    Thanks.
    Rick has given you what you need, he always does.
    But the task you've described is not simple at all. It's not really an After Effects issue.
    There are many sites that offer good recommendations for maximizing your youtube workflow so your video looks the best and plays flawlessly. Youtube offers a good set of parameters. Some of this stuff is worthless, too. You've got to be selective.
    Starting out delivering a full 1080HD clip is not necessarily going to work out for you. Try rendering out to a 720 file. It's far smaller so it will be compressed much less by it's upload processor. The playback may be smoother and your audience is not going to be able to tell the difference between the 720 and a 1080 clip, most of the time. 
    Encourage you to drop back someday and let us know how you made out with Rick's advice.
    How to Make Professional Quality YouTube Videos: 6 Steps
    How to Make Good YouTube Videos for Video Marketing: 8 Steps
    How To Make Videos Look Great on YouTube - YouTube
    How to Make YouTube Videos Look Great
    Video quality - YouTube Help
    Tips of Getting Best YouTube Video Format for YouTube Uploading

  • Need some help with figuring out numbers

    I downloaded the newest version of numbers on my computer and created a new document.  However, now it will not let me get in that document because it says I do not have the latest version of numbers.  I checked and I do have the latest update for the software.  Any suggestions??

    Hi Jim,
    I am trying to guess how you figured it out. For the benefit of other users, please tell. Perhaps this will help:
    Wayne Contello has written a User Tip for this problem in the new releases of iWork.
    https://discussions.apple.com/docs/DOC-6991
    The trick is to drag icons for both versions to your Dock. Right click or control click on each and Options > Keep in Dock. That puts you in charge of which version you launch.
    Instead of double clicking the document, run whichever version of Numbers suits and use File > Open.
    Regards,
    Ian.

  • I have a ipad2 however I need some help on cutting out some text. I can create the box but I don't see any delete text.

    Can some help me I'm look for the delete text on the box but don't see it.   Are my settting wrong ?????

    This box? If so - follow Ralph's instructions - tap - Cut.

  • I need some people who can test the following for me - Wake on Ethernet Acc

    Hey there,
    i am sorry for crossposting but i need someone who can confirm something like a bug in 10.6.2 SL.
    What you need:
    Two Macs running 10.6.2 SL which are in the same Network.
    The following settings need to be activated on both Macs:
    1. System Preferences -> Energy Saver -> *Wake on Ethernet Access*
    2. System Preferences -> Energy Saver -> Computer Sleep set to never
    3. System Preferences -> Sharing -> Screensharing and File Sharing
    What you need to do is simple. Start both Macs so that they see each other in their finder.
    Now connect with one Mac to the other and wait a bit until you can see the folders of the distant Mac. As soon as those folders show up, click on the "Screensharing" Button on the upper right side of the finder. Enter your PW (if set up) and wait until you can control the other Mac. Now simply go to Apple -> Sleep on the Computer you just connected to via this screensharing session (by using this screensharing session and not the keyboard or mouse of this distant Mac). After this Mac went to sleep close the screensharing session.
    Now you need to wait for 2 hours. You are not allowed to start or use the Mac you just set to sleep.(The other one which you used for connecting to the other Mac may be used just as normal).
    Now here is the point where all of this gets "interesting". Because you enabled "Wake on Ethernet Access" the Mac you just set to sleep will wake up in about 2 hours to perform a sleep proxy announcement. Usually this Mac will wake up for 15 seconds without turning on the screen. After 15 seconds it should go back to sleep.
    What i found out: As soon as you set your Mac to sleep by using a VNC Tool like this Screensharing App (i.e. because you are not in the same room/city/country as the other mac and you cannot put it to sleep manually with the attached keyboard) the Mac will wake up but will NOT go to sleep again. This makes the whole Back to my Mac and Wake on Demand feature useless as it was designed to safe power and not to start a Mac (that was set to sleep by Screensharing) after 2 hours without automatically put it back to sleep.
    I need some proof that i am not the only one with this problem so i would really appreciate your help in this.. it will cost you 2 hours where you cannot use your second mac but it might be really useful to me if you have the same issues.
    What i already did while troubleshooting:
    -Reinstall the Firmware of my Cable Modem and Router
    - Restart every of my 3 Macs which behave like this
    - Reset PMU, SMC, NVRAM, PRAM and everything that is possible on every Mac
    - Reinstall the OS (only thing i installed were the updates to 10.6.2) on every Mac. Same issue on a clean fresh install.
    Thank you and happy new year from germany everybody
    greetings
    André

    *Important notice for Macbook/Macbook Pro/Macbook Air Users:*
    The "Wake on Ethernet Access" Option is only working when the Mac you just set to sleep via Screensharing is *connected to your power supply* *and its lid is NOT closed.* Please consider this in your testing.
    Thank you!

  • Hi, can anyone help me out with this, I need some help on designing GUI for e-learning coursewares. Some tutorials or some helpful sites will do.

    I need some help with the GUI design.

    Have you tried the line inputs on the back of your FirePod? If you update its firmware (not sure if you will need to or not), I seem to remember hearing that the FirePod can run without FW connection, i.e. stand alone. In this mode with the outs from your mixer into line ins 1-2 (2nd from left on the back) it should work fine. I say should because I have never tried. However, these are used for returns from an external effects unit. I assume here, and the important word is assume, that there are two so that they can be used as a stereo send or as a mono send. Worth a try! Let us know how it goes.
    Best, Fred

  • Hi, i was wounding if anyone would help me get information on the company regarding the acquisition of, beats by dre, could someone please help me out as i am doing a college report on this and need some good sources of information

    hi, i was wounding if anyone would help me get information on the company regarding the acquisition of, beats by dre, could someone please help me out as i am doing a college report on this and need some good sources of information

    Try a search with Google.
    Why should we do your homework for you?

  • Need some practical Scenarios to test Compliance Calibrator, FF and AE

    Hi Experts,
    I have installed Compliance Calibrator 5.2 / Access Enforcer and Firefighter on a test System. However i am looking for some practical scenarios / Examples to test the functionlity of these installations. If any of you is currently working on these technologies i appreciate if you c an provide 2 3 scenarios to test my installation and functionality .
    Thanks in advance.
    Your help is much apprecaited..
    SK

    Hi SK,
    Testing the functionality of CC
    1. I would recommend to create some test roles where in you plug in some conflicting tcodes
        which can pose a sure SoD Risk, lets say Create Vendor Invoice(FB01) and Make an
        Automatic Payment(F110).
    2. Now run the Risk Analysis by choosing the Default SAP GRC ruleset library and do a  
        Role level Analysis.Then Assign the Test Roles to Test Users and then do a User Level Analysis.
    3. You may have create some Custom Rule sets with appropriate naming of Conflicting functions
        like Creation of Purchase Order (P001), Approve Purchase Order(P002)
        in different Application Areas like Purchase 2 Pay(P2P), Order 2 Cash (O2D) and try to do
        the same as above two steps.
    4. Test the functionality of Risk Remediation by removing the conflicting tcodes and do the
        Risk Analysis.Your previous Risk Roles must not appear
    5. Test the functionality of Risk Mitigation by placing a mitigation Control on the Conflicting tcodes
       and do the Risk Analysis.Your previous Risk Roles must not appear if you have properly
        configured your CC
    Testing the functionality of FF
    1. I would say create a few Firefighter IDs in different functional areas like FI, SD, MM, and then
       create some test users for Firefighter Owners, Controllers and Firefighters who can use
       the functionality of FF.
    2. Create some FF roles which have exceptional access in those functional areas
        encompassing transaction codes and authorization objects that are not used in normal incidents.
    3. Assign each of the FF roles to the respective FF IDs and then to the test Firefighters.
    4. Pull the log reports in FF and see if it gives exact details of the FF usage.
    5. You may have take some assistance of the Functional team members to do the testing.
    Testing the functionality of AE
    1. Create a workflow scenario of hiring a new user.
    2. Create the request under a test requestor. Assign the request to some test approver
    3. Also Assign some roles and test the functionality.
    Hope this helps for a good start
    Regards,
    Kiran Kandepalli.

  • New to Solaris administration - Need some help with some issues

    Hello all,
    I am a new to Solaris administration and need some assistance with a few things. I was going to make separate posts but decided it would be easy to keep track of in one. I really do not know much about the OS but I do have a little Linux background so that might help me out. I am going to number my problems to keep them sorted, so here we go.
    The machine:
    Sunfire V880
    4x 73GB HDs
    PCI dual fiber channel host adapter
    Attached RAID array:
    Sun StorEdge T3 Array with 9x 73GB HDs
    Sun DDS4 Tape Drive in a Unipack
    OS: Solaris 5.10
    Updates: Updated everything except 2 patches (Updating is a real pain isn't it? At least it seems that way to me.)
    1. So I might as well start with the update issues! These 2 updates will not install:
    -PostgreSQL 8.2 source code, (137004-02)
    Utility used to install the update failed with exit code {0}.
    -Patch for mediaLib in solaris, (121620-03)
    Install of update failed. Utility used to install the update is not able to save files. Utility used to install the update failed with exit code 4.
    No idea why the PostgreSQL update is not working, but the medialib patch seems to not have enough hard drive space.
    2. Where are all the drives? I don't know how to find the RAID box or the other 3 internal hard drives. When I installed the OS, I think I installed it on only one hard drive and that might be part of the reason why the medialibe update above says that I don't have enough space.
    3. I probably need more space for the OS and updates, is there a way to "add" space onto the hard drive that currently is running the OS?
    3. Once I see the other hard drives I wish to combine them to make a RAID 0 and RAID 5 array, how do I go about doing that?
    4. How can I find/see the tape drive?
    5. Does my swap space really need to be 64GB? I know the book I have read suggests it, but I only made it 5GB because it didn't seem to make sense to make it 64GB.
    Thank you in advance for the help. I know these are a lot of questions to ask but please go easy on me :)
    rjbanker
    Edited by: rjbanker on Mar 7, 2008 8:21 AM

    SolarisSAinPA*
    1.
    -PostgreSQL 8.2 source code, (137004-02)
    Utility used to install the update failed with exit code {0}.
    Exit code 0 means there were no errors. When you run showrev -p 137004-02, does your system show that the patch is installed? You can check the log for a particular patch add attempt in /var/sadm/patch/+patch_num_rev+1- A bunch of stuff shows up, here is a portion (I am not entirely sure what it means, there must be a least a page of stuff like this):
    Patch: 121081-08 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWc cccrr, SUNWccccr, SUNWccfw, SUNWccsign, SUNWcctpx, SUNWccinv, SUNWccccfg, SUNWcc fwctrl
    Patch: 122231-01 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWc ctpx
    Patch: 120932-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcctpx
    Patch: 123123-02 Obsoletes: Requires: Incompatibles: Packages: SUNWccinv
    Patch: 121118-12 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWc smauth, SUNWppror, SUNWpprou, SUNWupdatemgru, SUNWupdatemgrr, SUNWppro-plugin-su nos-base
    2.
    Where are all the drives? I don't know how to find the RAID box or the other 3 internal hard drives. When I >installed the OS, I think I installed it on only one hard drive and that might be part of the reason why the >medialibe update above says that I don't have enough space.
    When you run format command, how many drives are listed? Identify your root drive (compare with output of df command you ran earlier) Please post here.2. Output of df-hk, looks like I ran out of room. Should I just go ahead and reinstall the OS?
    Filesystem size used avail capacity Mounted on
    /dev/dsk/c1t0d0s0 5.9G 5.4G 378M 94% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap 42G 1.3M 42G 1% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
    5.9G 5.4G 378M 94% /platform/sun4u-us3/lib/libc_psr.so.1
    /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
    5.9G 5.4G 378M 94% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 42G 1.1M 42G 1% /tmp
    swap 42G 32K 42G 1% /var/run
    /dev/dsk/c1t0d0s7 46G 47M 46G 1% /export/home
    3. So I guess the general consensus is to reinstall the OS, is that correct?
    4. There is nothing in \dev\rmt, and unfortunately I don't have a tape to test it with!
    5. I guess 5GB will be ok for what we do.
    Alan.pae*
    1. I think the above text might explain why it failed, although I don't know how to correct it.
    2. Output of format:
    # mount
    / on /dev/dsk/c1t0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1d80008 on Mon Mar 10 10:56:51 2008
    /devices on /devices read/write/setuid/devices/dev=4dc0000 on Mon Mar 10 10:56:19 2008
    /system/contract on ctfs read/write/setuid/devices/dev=4e00001 on Mon Mar 10 10:56:19 2008
    /proc on proc read/write/setuid/devices/dev=4e40000 on Mon Mar 10 10:56:19 2008
    /etc/mnttab on mnttab read/write/setuid/devices/dev=4e80001 on Mon Mar 10 10:56:19 2008
    /etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=4ec0001 on Mon Mar 10 10:56:19 2008
    /system/object on objfs read/write/setuid/devices/dev=4f00001 on Mon Mar 10 10:56:19 2008
    /platform/sun4u-us3/lib/libc_psr.so.1 on /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 read/write/setuid/devices/dev=1d80008 on Mon Mar 10 10:56:50 2008
    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 on /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 read/write/setuid/devices/dev=1d80008 on Mon Mar 10 10:56:50 2008
    /dev/fd on fd read/write/setuid/devices/dev=50c0001 on Mon Mar 10 10:56:51 2008
    /tmp on swap read/write/setuid/devices/xattr/dev=4ec0002 on Mon Mar 10 10:56:52 2008
    /var/run on swap read/write/setuid/devices/xattr/dev=4ec0003 on Mon Mar 10 10:56:52 2008
    /export/home on /dev/dsk/c1t0d0s7 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1d8000f on Mon Mar 10 10:56:57 2008
    3. Judging by the above text I will be doing a reinstall huh?
    4. Actually I am not familiar with tape backups let alone solaris backup apps! Any suggestions? (Preferably free, have to cut down on costs.)
    5. No comment
    Thanks for the help, hope to hear from you again!
    rjbanker

  • 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!

  • Need some help with a remove function

    Design and code a program that will maintain a list of product names. Use a String type to represent the product name and an array of strings to implement the list. Your program must implement the following methods:
    Add a product to the list
    Remove a product from the list
    Display then entire list
    Find out if a particular product is on the list.
    You need to create a command command loop with a menu() function. The program must continue asking for input until the user stops.
    This is the assignment and this is what I have so far. I need some help writing the remove function.
    Thanks
    * Title: SimpleSearchableList.java
    * Description: this example will show a reasonably efficient and
    * simple algorithm for rearranging the value in an array
    * in ascending order.
    public class SimpleSearchableList {
         private static String[] List = new String[25]; //These variables (field variables)
         private static int Size; //are common to the entire class, but unavailable
         //except to the methods of the class...
         public static void main(String[] args)
              String Cmd;
              for(;;) {
                   Menu();
                   System.out.print("Command: ");
                   Cmd = SimpleIO.inputString();
                   if(Cmd.equals("Quit"))
                        break;
                   else if(Cmd.equals("Fill"))
                        FillList();
                   else if(Cmd.equals("Search"))
                        SearchList();
                   else if(Cmd.equals("Show"))
                        ShowList();
                   else if(Cmd.equals("Remove"))
                        Remove();
         //Tells you what you can do...
         public static void Menu()
              System.out.println("Choices..................................");
              System.out.println("\tFill to Enter Product");
              System.out.println("\tShow to Show Products");
              System.out.println("\tSearch to Search for Product");
              System.out.println("\tRemove a Product");
              System.out.println("\tQuit");
              System.out.println(".........................................");
         //This method will allow the user to fill an array with values...
         public static void FillList()
              int Count;
              System.out.println("Type Stop to Stop");
              for(Count = 0 ; Count < List.length ; Count++)
                   System.out.print("Enter Product: ");
                   List[Count] = SimpleIO.inputString();
                   if(List[Count].equals("Stop"))
                        break;
              Size = Count;
         //This method will rearrange the values in the array so that
         // go from smallest to largest (ascending) order...
         public static void SearchList()
              String KeyValue;
              boolean NotFoundFlag;
              int Z;
              System.out.println("Enter Product Names Below, Stop To Quit");
              while(true)
                   System.out.print("Enter: ");
                   KeyValue = SimpleIO.inputString();
                   if(KeyValue.equals("Stop")) //Note the use of a method for testing
                        break; // for equality...
                   NotFoundFlag = true; //We'll assume the negative
                   for(Z = 0 ; Z < Size ; Z++)
                        if(List[Z].equals(KeyValue)) {
                             NotFoundFlag = false; //If we fine the name, we'll reset the flag
              System.out.println(List[Z] + " was found");
                   if(NotFoundFlag)
                        System.out.println(KeyValue + " was not found");     
         //This method will display the contents of the array...
         public static void ShowList()
              int Z;
              for(Z = 0 ; Z < Size ; Z++)
                   System.out.println("Product " + (Z+1) + " = " + List[Z]);
         public static void Remove()
    }

    I need help removing a product from the arrayYes. So what's your problem?
    "Doctor, I need help."
    "What's wrong?"
    "I need help!"
    Great.
    By the way, you can't remove anything from an array. You'll have to copy the remaining stuff into a new one, or maybe maintain a list of "empty" slots. Or null the slots and handle that. The first way will be the easiest though.

  • Some issues while testing EJB3 API

    I'm running some EJB3 peristence test outside standalone and I'm running
    into some issues that I did not see running the same code against the
    Hibernate EntityManager implementation.
    I'm currently using the Kodo 4.0EA3 download. Any help is appreciated.
    I have the following table:
    Table "public.beers"
    Column | Type | Modifiers
    id | integer | not null
    brand | character varying(50) |
    price | numeric(15,2) |
    Indexes:
    "beers_pkey" PRIMARY KEY, btree (id)
    With the following class:
    package com.springdeveloper.model;
    import javax.persistence.*;
    import java.io.Serializable;
    @Entity
    @Table(name="BEERS")
    public class Beer implements Serializable {
    private Long id;
    private String brand;
    private Double price;
    public Beer() {
    public Beer(Long id) {
    this.id = id;
    @Id(generate=GeneratorType.AUTO)
    @Column(name="ID", nullable=false)
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public String getBrand() {
    return brand;
    public void setBrand(String brand) {
    this.brand = brand;
    public Double getPrice() {
    return price;
    public void setPrice(Double price) {
    this.price = price;
    public String toString() {
    return "[" + id + "] " + brand + " " + price;
    Issues:
    =======
    1) If I don't have a column named type I get an error -
    Exception in thread "main" <2|false|4.0.0EA3> kodo.util.StoreException:
    ERROR: column t0.type does not exist {prepstmnt 14211340 SELECT t0.ID,
    t0.TYPE, t0.brand, t0.price FROM BEERS t0 WHERE (t0.ID = ?) [reused=0]}
    [code=0, state=42703]
    Any way around this since there is no inheritance structure involved?
    2) If I don't specify a fully qualified name for the first query I get
    this error:
    33 INFO [main] kodo.Runtime - Starting Kodo 4.0.0EA3
    74 DEBUG [main] kodo.Runtime - License capabilities: "Kodo Standard
    Edition,Kodo Community Edition,Kodo Evaluation Edition,Datacache Plug-
    in,Custom Result Object Providers,Custom Mappings,Enterprise
    Databases,Query Extensions,Performance Pack,Statement Batching,Kodo
    Enterprise Edition,Managed Environment,Developer Tools,Custom
    DBDictionaries" Expiration: "11/22/05 7:00 PM" Maintenance expiration:
    "11/22/05 7:00 PM"
    496 INFO [main] kodo.jdbc.JDBC - Using dictionary class
    "kodo.jdbc.sql.PostgresDictionary".
    1007 INFO [main] kodo.MetaData - Found 3 classes with metadata in 0
    milliseconds.
    Exception in thread "main" <4|false|4.0.0EA3>
    kodo.persistence.ArgumentException: Could not resolve entity named "Beer".
         at kodo.query.ejbql.EJBQLParser.populate(EJBQLParser.java:61)
         at kodo.query.ExpressionStoreQuery.populateFromCompilation
    (ExpressionStoreQuery.java:129)
         at kodo.query.QueryImpl.compileForCompilation(QueryImpl.java:682)
         at kodo.query.QueryImpl.compileForExecutor(QueryImpl.java:713)
         at kodo.query.QueryImpl.getOperation(QueryImpl.java:1624)
         at kodo.query.DelegatingQuery.getOperation(DelegatingQuery.java:136)
         at kodo.persistence.QueryImpl.execute(QueryImpl.java:231)
         at kodo.persistence.QueryImpl.getSingleResult(QueryImpl.java:258)
         at KodoTest.main(KodoTest.java:16)
    If I specify a fully qualified name for the EJBQL the first time I query
    then I can just use 'Beer' in subsequent queries. It doesn't help to
    specify '@Entity(name="Beer")' in the persistent class either.
    Here is my query:
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    Beer b = (Beer)em.createQuery(
    "select object(o) from Beer o where o.id = :id")
    .setParameter("id", new Long(2))
    .getSingleResult();
    System.out.println("Beer: " + b);
    em.getTransaction().commit();
    This works but is kind of ugly:
    Beer b = (Beer)em.createQuery(
    "select object(o) from com.springdeveloper.model.Beer o where
    o.id = :id")
    .setParameter("id", new Long(2))
    .getSingleResult();
    And here is my peristence.xml:
    <?xml version="1.0"?>
    <entity-manager>
    <name>BeerDistributor</name>
    <provider>kodo.persistence.PersistenceProviderImpl</provider>
         <properties>
              <!--
              To evaluate or purchase a license key, visit http://
    www.solarmetric.com
              -->
              <property name="kodo.LicenseKey" value="????-????-????-????-????"/>
    <property name="kodo.PersistentClasses"
    value="com.springdeveloper.model.Beer,
    com.springdeveloper.model.Customer,
    com.springdeveloper.model.Order"/>
    <!--
    Connection configuration.
    -->
              <property name="kodo.ConnectionURL" value="jdbc:postgresql://
    localhost/test"/>
              <property name="kodo.ConnectionDriverName"
    value="org.postgresql.Driver"/>
              <property name="kodo.ConnectionUserName" value="trisberg"/>
              <property name="kodo.ConnectionPassword" value="????"/>
              <!--
              To disable logging, set value to 'none'.
              To use Log4J, configure Log4J appropriately, and set value to
    'log4j'.
              To view trace of all SQL being executed, add 'SQL=TRACE' to value
    below.
              -->
              <property name="kodo.Log" value="DefaultLevel=INFO, Runtime=DEBUG,
    Tool=INFO"/>
         </properties>
    </entity-manager>
    Thanks,
    Thomas Risberg

    1) If I don't have a column named type I get an error -This, unfortunately, is something that we need to clarify in the spec
    itself. Currently, the discriminator value and column for a class have
    default values in the spec. So technically, every base class has a
    discriminator column according to spec defaults.
    Obviously this isn't practical. In fact Kodo already turns off
    automatic discriminator columns for vertical and table-per-class
    inheritance unless you explicitly give a discrimintor value or column.
    So one way to not use a discriminator column in Kodo right now is to set
    your inheritance type to JOINED or TABLE_PER_CLASS. Another way is to
    use Kodo's kodo.persistence.jdbc.DiscriminatorStrategy annotation, which
    allows you to name a non-standard or custom discriminator strategy.
    Setting this annotation's value to "final" (an alias for Kodo's
    kodo.jdbc.meta.strats.NoneDiscriminatorStrategy) will indicate that the
    class doesn't need a discriminator because it won't be extended.
    We will try to get this ironed out in future versions of the spec.
    If I specify a fully qualified name for the EJBQL the first time I query
    then I can just use 'Beer' in subsequent queries. It doesn't help to
    specify '@Entity(name="Beer")' in the persistent class either.This sounds like a bug in our early access implementation. I have a
    feeling it only occurs with property access entities -- if you change
    your entity to use field access (which also means using Kodo
    enhancement), I think you'd see the problem go away. I think it might
    also go away if you performed some other persistence operation on a Beer
    entity (such as a by-id lookup) before attempting the query. We'll make
    sure to have this fixed for our next release. Thanks for the report.

  • We have a set of oracle clients running on T5220 zones that need some help

    Greetings all -
    We have a set of oracle clients running on T5220 zones that need some help.
    If, for example, I execute the query "select (all) from dba_objects", trace output reports 90% of the elapsed time spent under "SQLNet message from client".
    Here are OS details for the clients: Solaris 10 5/08 s10s_u5wos_10 SPARC
    Running "uname -a" from the client gives:
    (SunOS bmc-ste-app 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220)
    Here are OS details for the dataserver: Enterprise Linux Enterprise Linux Server release 5.2
    Running "uname -a" from the dataserver gives:
    (2.6.18-92.1.6.0.2.el5 #1 SMP Thu Jun 26 17:44:55 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
    The RDBMS is 10.2.0.4
    Again, please note, there is no application in the picture here. We are just running a simple catalog query (select * from dba_objects) from sqlplus. Why the wait on something like this? The wait also occurs when a different query is used (select (all) from SYS.COL$ where rownum < 50000). And it doesn't matter if I used the full client or the instant client. I still get the same high-wait.
    We had thought - maybe this is a network thing - so we put a test client on the same subnet as the dataserver. This helped - but not enough. The wait is still way too high even with firewalls taken out of the equation.
    We've also looked at arraysize, SDU, kernel settings. And we've spent time going over tkprof, truss and sqlnet-tracing.
    Has anyone ever had to solve this HIGH WAIT ON CLIENT issue? Is there a work around or some tweak I'm missing.
    Is anyone configured like we are (linux dataserver, solaris clients)? If so - did you see anything like this?
    tia -
    Jim
    Edited by: jim1768 on Mar 31, 2010 1:47 PM
    Edited by: jim1768 on Mar 31, 2010 2:12 PM
    Edited by: jim1768 on Mar 31, 2010 2:13 PM

    Hello,
    We have the exact same issue. Did you ever solve this issue? We have a t5220 and have just upgraded our 11.5.10.2 11i system on it from 9.2.0.8 32-bit sparc to 11.2.0.1 64-bit sparc. Things should be faster but arent, and our consultant has tracked it down to high wait times when the apps tier using forms connects to the database tier on the same box. So even though the t5220 is both server and client, there is something about the client sql connection.through TNS that his having trouble. Thanks for any information. We've also created an S/R with Oracle.
    Note: I am well aware of the other issues with the CMT server series but this particular issue seems independent of the regular / known issues and remains a mystery to us. Other known issues with the CMT servers for SPARC:
    Metalink Note 781763.1 (Migration from fast single threaded CPU machine to CMT UltraSPARC T1 & T2)
    http://blogs.sun.com/glennf/resource/Optimizing_Oracle_CMT_v1.pdf
    http://blogs.sun.com/glennf/tags/throughput
    http://blogs.sun.com/glennf/entry/getting_past_go_with_sparc
    http://www.oracle.com/apps_benchmark/doc/E-Bus-11i-PAY_ORA_SUN-T5220.pdf (this paper has some oracle init settings at the end. The kernel settings have been included in the OS upgrade)
    http://blogs.sun.com/mandalika/entry/siebel_on_sun_cmt_hardware

  • Need some help with threads...

    Hello all,
    I am working on a project at work, and I am not the best programmer in the world. I have been trying to get my head around this for a couple of days and just cannot get it to work.
    I am writing an instrumentation control program that will have three threads. One is the GUI, one will receive control information and set up the hardware, and one will check the hardware status and report it to the GUI periodically. I plan on using the invokeLater() method to communicate the status to the GUI and change the status display in the GUI. Communication from the GUI to the controller thread and from the status thread to the controller thread I had planned on being piped input/output stream as appropriate. I have a control class and a status class that need to be communicated over these piped streams. In some trial code I have been unable to wrap the piped input/output streams with object input/output streams. I really need some help with this. Here is the main thread code:
    package playingwiththreads1;
    import java.io.*;*
    *public class PlayingWithThreads1 {*
    public static void main(String[] args) {*
    * PipedOutputStream outputPipe = new PipedOutputStream();*
    * ObjectOutputStream oos = null;*
    * ReceiverThread rt = new ReceiverThread(outputPipe);*
    // Start the thread -- First try*
    * Thread t = new Thread(rt);*
    t.start();*
    // Wrap the output pipe with an ObjectOutputStream*
    try*
    oos = new ObjectOutputStream(outputPipe);*
    catch (IOException e)*
    System.out.println(e);*
    // Start the thread -- Second try*
    //Thread t = new Thread(rt);*
    //t.start();*
    /** Send an object over the pipe. In reality this object will be a
    class that contains control or status information */
    try
    if (!oos.equals(null))
    oos.writeObject(new String ("Test"));
    catch (IOException e)
    try
    Thread.sleep(5000);
    catch (InterruptedException e)
    I read somewhere that it matters where you start the thread relative to where you wrap piped streams with the object streams. So, I tried the two places I felt were obvious to start the thread. These are noted in the comments. Here is the code for the thread.
    package playingwiththreads1;
    import java.io.*;
    public class ReceiverThread implements Runnable {
    private PipedInputStream inputPipe = new PipedInputStream();
    private ObjectInputStream inputObject;
    ReceiverThread (PipedOutputStream outputPipe)
    System.out.println("Thread initialization - start");
    try
    inputPipe.connect(outputPipe);
    inputObject = new ObjectInputStream(inputPipe);
    catch (IOException e)
    System.out.println(e);
    System.out.println("Thread initialization - complete");
    public void run()
    System.out.println("Thread started");
    try
    if (inputObject.available() > 0)
    System.out.println(inputObject.read());
    catch (IOException e)
    System.out.println(e);
    Through testing I have determined that no matter where I start the thread, the thread never gets past the "inputObject = new ObjectInputStream(inputPipe);" assignment.
    Could someone please help me with this? There are other ways for me to write this program, but this is the one that I would like to make work.
    Many thanks in advance,
    Rob Hix
    Edited by: RobertHix on Oct 6, 2009 3:54 AM

    Thanks for the help, but that did not work. I tried flushing the ObjectOutputStream and it is still hanging when initializing the thread.
    Here is a better look at the code since I was helped to figure out how to insert it:
    The main method:
    package playingwiththreads1;
    import java.io.*;
    public class PlayingWithThreads1 {
        public static void main(String[] args) {
            PipedOutputStream outputPipe = new PipedOutputStream();
            ObjectOutputStream oos = null;
            ReceiverThread rt = new ReceiverThread(outputPipe);
            // Start the thread -- First try
            //Thread t = new Thread(rt);
            //t.start();
            // Wrap the output pipe with an ObjectOutputStream
            try
                oos = new ObjectOutputStream(outputPipe);
                oos.flush();
            catch (IOException e)
                System.out.println(e);
            // Start the thread -- Second try
            Thread t = new Thread(rt);
            t.start();
            /* Send an object over the pipe.  In reality this object will be a
             * class that contains control or status information */
            try
                if (!oos.equals(null))
                    oos.writeObject(new String ("Test"));
                    oos.flush();
            catch (IOException e)
                System.out.pringln(e);
            try
                Thread.sleep(5000);
            catch (InterruptedException e)
    }The thread code:
    package playingwiththreads1;
    import java.io.*;
    public class ReceiverThread implements Runnable {
        private PipedInputStream inputPipe = new PipedInputStream();
        private ObjectInputStream inputObject;
        ReceiverThread (PipedOutputStream outputPipe)
            System.out.println("Thread initialization - start");
            try
                inputPipe.connect(outputPipe);
                inputObject = new ObjectInputStream(inputPipe);
            catch (IOException e)
                System.out.println(e);
            System.out.println("Thread initialization - complete");
        public void run()
            System.out.println("Thread started");
            try
                if (inputObject.available() > 0)
                    System.out.println(inputObject.read());
            catch (IOException e)
                System.out.println(e);
    }Does anyone else have and ideas?

  • HD Workflow - Need Some Clarification Please

    Apologies for asking another question so soon, but I need some help with my import/export workflow please.
    So I've just upgraded to AE CS4 from 6.5 Pro.
    I'm doing a show where I'm using XDCAM EX footage with cgi shots and elements, all comped in AE.  The shots will be handed to the editor, who uses FCP, as Quicktime files, I think.  This is where I need some help.
    I have read and re-read (several times)  the 'Color Management Workflow in Adobe After Effects CS4' pdf, specifically the 'High Definition Video Workflow' section. I am using a calibrated monitor (regularly calibrated and checked with a Spyder 3 Elite).
    I get setting up the AE project to be colour managed to the HDTV (Rec. 709) working space, and I likewise understand using Interpret Footage to colour manage assets that are imported.
    Where I'm falling down is outputting the finished shots to QT movies, specifically on two points: the apparent gamma of the output (as I see it in the QT Player), and the data-rate.
    I understand setting the output to have the same profile in the Output Module of the Render Queue.  But from there I'm stumped, because the QT outputs don't visually match the AE comp, with almost any codec I try.  I understand there are QT codec issues when outputting from AE - I was reading about those the other day when I was hitting the same problem in AE 6.5.  When I open the QT movie on the desktop (Windows XP Pro) it's invariably alot lighter, lower contrast.  Along with the other issue that the data-rate of the QT output from AE is anything up to 8 times greater than I need.
    I tried rendering Animation and PNG movies from AE, then feeding those through the Media Encoder, outputting via H.264 to get an MP4 with the data-rate around 50mbits/sec.  That works on that, but again the movie is pretty washed out and low contrast.
    I guess this is pretty fundamental stuff, but I've hit a brick wall over what to do.  I'd appreciate any advice on the workflow to output the finished comps to hand to the editor, as a movie file, QT or whatever.  And obviously knowing that what I see in my AE comp is what he will see on his FCP suite.
    Julian.

    Thanks for the additional comments and ideas.
    In terms of profile, as I mentioned, the intermediates will be going off to the editor (off-site) for editing on his FCP suite.  I'll stick to working in the prescribed HDTV (Rec. 709) space, and I've given him all the detail I can of how I'm working, but crucially I haven't stood at his edit-suite to see how the stuff looks.
    But, he's no newbie, so I'm hoping it'll be OK.
    Blasted shame about the H.264 BluRay not being compatible with QT - I thought I had this whole issue beat until that came along.  It's not a matter of disk space here, but the editor is mithering that the intermediates we are testing, in either PNG, or Animation, and a couple of others, are choking his playback.
    I'm not sure what to say about that, other than to go down this road of trying to squish these intermediates as low as possible without wrecking the look, hence finding that the DNxHD is providing the best solution.  If it had been a SD project, I might well have tried the native H.264, even over our normal PNG workflow.
    So what will play the native H.264 BluRay compressed output?
    Julian.

Maybe you are looking for

  • How to read master data in transformation routine?

    Hi gurus, I am loading data from 0HR_PA_0 data source. I have 2 fields in the DS: PERNR (Personal Number) and CALMONTH (Calendar year/month). I need to read 0EMPLOYEE's attribute 0ENTRYDATE and count the difference between Entry date and Calendar yea

  • Extended rebate - change payment values with Badi RBT_ENH_BADI_SETTLE

    Dear all I am trying to change payment values for an extended rebate agreement credit memo. According to the documentation it can be done using BADI RBT_ENH_BADI_SETTLE . I am using  method BONUS_VALUES_MODIFY , but no values has been changed in the

  • Updating XMP Dublin Core using Adobe Acrobat 5.0?

    I am very interested in using XMP to better describe my documents; I've also read that Adobe Acrobat 5.0 supports XMP. As such, how would I go about modifying the values of the Dublin Core properties using Acrobat 5.0?

  • Clean OS Install.. help?

    I want to do a clean install of either WinXP or maybe even try out Vista on my S10.  I really don't care about the separate partitions and onekey, and would rather just reformat it into one.  But, I don't have an external optical drive and really don

  • How to edit or deleter Published services

    Hello All, How to edit or delete published services in service registry in PI 7.1 ? Regards, Monish.