Help Needed urgently ! please reply

hey guys
errrrrm had my ipod nano 2GB since xmas 2005
its now may and today my screen has become ******** big time, the screen has become split into two different bars, both horizontal and vertical. also my ipod earphones have become faulty and broken.
I would return this product, but as a special present i had it personalised. so therefor i may not be able to return to apple store uk. What i would like to know is if my ipod is 1) is my warranty still available
2) is it possible to return the ipod
3) and also if i return it, can i get it fixed, or have a new one delivered. i know that other shops do do this service for free, and would i have to pay for any repairs made?
Thanks for your help guys, and i hope to hear from you soon.
P.S i dont check this site often as i am still at school, so any information that you have could you please email on payney-2k6 at hotmail.com
Many Thanks once again guys and girls
Tom Payne
packard bell   Windows XP Pro  

It sounds like a hardware problem. Assuming it's still under warranty, you can either take it to an Apple store, or file a service request online here;
http://depot.info.apple.com/ipod/
Good luck.
Cheers!
-Bryan

Similar Messages

  • Design pattern help need urgently please

    Hi I need you to tell me if the following code looks like its a facade or not?
    The method make the table calls another method in the class project4
    which contains instances of itself and student class and supervisor class and the method prints out data from these classes.
    Iv to hand this in tomorow and would like to know
    Is that a facade or not?
    Please help
    public class TableFacade
         TableFacade()
         System.out.println("This is the table of projects");
         public Project4 makeTheTable()
              Supervisor5 sup = new Supervisor5();
              Project4 project =new Project4();
              project.readRelevantProjectsFromFile(sup);
         return project;
    }

    Sorry to be continuously replying but desperate times call for desperate measures anyway
    Im trying to adapt from my project4 class
    is this in the adaptor pattern?
    class AdaptProject
         Project4 project;
         Supervisor5 supervisor;
         void readProjectDetails()
              project.readProjectDetails();
         void readRelevantProjectsFromFile(Supervisor5 v)
              project.readRelevantProjectsFromFile(supervisor);
         String projName()
              return project.projName;
         String projSubject()
              return project.projSubject;
    }

  • BPM Workflow Help Needed Urgently please

    Hi All,
    We are working on a BPM workflow
    User A submits the request which goes to User B for review if rejected by user B the process stops but if approved then the amount is calculated using a decision table and based on the amount it will be routed to the respective users.
    I did it till BPM part and created rules in the BRM part as well but dont know how to call this BRM in BPM.
    Please help me its very very urgent.
    Thanks in advance

    Refer step 25 of this document to see how to create a web-service for your BRM ruleset.
    Once the web service is ready, it can be imported anywhere for use.
    1. In your BPM, right-click on the 'WSDL' folder and select 'Import WSDL'. You can import your BRM web-service here.
    2. Then place an automated activity in your BPM process design and set the BRM service as the Service Reference property of the Automated activity.
    3. Once this is done, you will see the Condition and Action values of your BRM decision table in the Input and Output mapping of the Automated Activity.
    4. Map the values of BPM process context to the BRM condition values in the 'Input Mapping' and get the corresponding output in Output mapping (Action Values of decision table).
    Refer step 12 in this document to see how to import a WSDL in your BPM Process.
    Hope this helps.

  • Zoom problem(help needed urgently please )

    friends,
    i m working on a class in which there is one JPanel inside a JInternalFrame. i have functionalities like zoomin and zoomout. for that i m writing my code on mouse clicked of JPanel but my problem is that mouseClicked method is getting called several times even if i click once on JPanel and thus zooming the JPanel by a very large value.
    please help me if u have any solution for it.Its very urgent.

    You are still crossposting.
    It would be a waste of everyone's time to answer you here, since quite likely others have already helped you elsewhere.

  • High CPU usage on all cores by ntoskrnl.exe? Help needed urgently Please.

    ntoskrnl.exe, system, has multiple cores running with high usage, locking up my system when using programs.
    After looking through the forums I did the following:
    I ran
    sfc /scannow but nothing found. 
    I used process Explorer to find that the system has a thread <ntoskrnl.exe!TtlSid HashLookup+0x 1ffc> that
    is using up 40+% of all four cpu cores. Looks like a driver fault with 8.1, but cannot pinpoint the device. Any clues msg me. 
    I have created an etl file that contains usage data. this is present here:
    https://dl.dropboxusercontent.com/u/8554814/highCPUUsage.zip
    Would be a lot of help if this can be resolved. please help.

    forgot to ask, may I know your PC model?
    mostly is related to the network, networking software, or software which need internet connection
    did you already updated all the network driver?
    is there any networking software or downloaded software? may I know your antivirus status? firewall?
    try clean boot and go to safemode to check, choose safe mode only, safe mode with networking and normal mode without internet (unplug cable or disconnect Wifi)

  • Help needed urgent please ( parallel port access in linux)

    hi all, i am trying to read and write data to /from the parallel port , i am running IBM j9 vm on linux.under /dev there are lp0..lp3 parport0..parport3, and port devices , i dont know which one to use , i have tried all , they all return with an ioexception saying "cannot find the file" except for port device which does not generate any error but it does not return what i have written on it ,
    any help would be much appreciated.
    i am using fileoutputstream and printwriter calsses .
    i dont want to use javax.comm api cause i think its incompatible with ibms visual age micro edition ( the one i am using ) so i would prefer something that works with my IDE .
    thanks
    yahya
    [email protected]

    However, there is an on-going OpenSource version called "RXTX" (http://jarvi.ezlink.com/rxtx/) that works quite well. Be sure to read all the documentation that comes with it, as you'll need to set some permissions on the ports you want to use.

  • Help needed urgently please!!!!!!

    hi
    there i am running windows xp pro 64 bit . Using Premiere Elements7. when i connect with firewire to load video from camera it all looks impeccable on screen as it loads. Once i stop loading and Premiere renders it (i guess) all of a sudden the video looks granny and pixalated and stays that way even after i export it on dvd.Hope spme one can help me please.Thank you in advance.

    i have a Sony hvr-hd 100u i shot the video in dv mode i dont understand why
    it gets granny after i load it onto PE7 i hope u can help me figure this out lol
    thanks again

  • Nokia 6300 help needed urgently please

    My friends 6300 phone has been trodden on by a large horse and has since stopped working - well it would really. But unfortunately she had not got the connectivity package for her laptop and had saved all the info on her phone rather than her sim. I have tried connecting it to my software but it comes up with USB device not recognised. My own 6300 and 6310 work fine so I know the Nokia pc suite is working fine. Is there any way we can get this info out she has phone numbers in there that she will never be able to get again.

    i hear you, i have been in this situation many times, hence now almost neurotically i have several back up files, and online back up providers to keep my most prescious data safe. still does not change the fact that it is frustrating when things like this happen that noone couldhave predicted. hope you get it sorted out and be able to find this data in other ways.....
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Woogly - I need U Urgent - please reply if U R there !

    Woogly - I need U Urgent - please reply if U R there !

    Thanks.
    Its already posted:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=480050
    Woogly had gave me last time very useful help getting a container over a container.
    Now I'm dealing with converting the same stuff to Applet, but of course..
    I'll be glad and thankful for help also from others.
    Thanks agian.

  • HT201210 i have an error of no 11. kindly help, needed urgently

    i have an error of no 11. kindly help, needed urgently
    when i try to upgrage my
    iphone 3gs wit 4.1 to new latest 5.1
    it gives the erorr of 11. what that mean? Reply as soon as you can !
    thnx

    Error -1 may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • Some J2ME midlets doubts!! help needed urgently!!!

    Hi,
    I am currently working in a company where it does wireless technology like WAP and I am assigned a task of creating a screensaver midlet. I have some doubts on the midlets.
    1) How do i use a midlet suites? From what I heard from my colleagues & friends, a servlet is needed for midlets to interact with one another. is it true?
    2) How do I get the startin midlet to take note the phone is idling so that the screen saver midlet can be called?
    Help needed urgently... if there is any source codes for me to refer to would be better... Thanks...
    Leonard

    indicates that MIDlet suites are isolated (on purpose) from each other, so you can't write over another one's address space.
    Also, I believe (at least on cell phones) that you have to specifically enter the Java Apps mode; unless you do the app won't execute. If you are in Java apps mode and a call comes in, the cell's OS puts the Java app currently executing on "Pause" mode and switches back to phone mode.
    Not sure if you will be able to have a Java app do that automatically.
    BTW why do you need a screensaver on an LCD display? Is it really intended to show an advertisement?
    Download and real all the docs you can from Sun, once you get over the generic Java deficiencies MIDlet's aren't that hard.

  • Load bar at start up, then shut down. HELP NEEDED URGENTLY!!! plss....

    Load bar at start up, then shut down. HELP NEEDED URGENTLY!!! plss..

    The startup disk may need repairing.
    Startup your Mac while holding down the Command + R keys so you can access the built in utiliites to repair the startup disk if necessary or restore OS X using OS X Recovery

  • Database and application getting hange (urgent please reply asap)

    hi,
    in alerlt log i found
    Process q003 died, see its trace file
    Thu Nov 24 10:50:36 IST 2011
    ksvcreate: Process(q003) creation failed
    Thu Nov 24 10:56:21 IST 2011
    ksvcreate: Process(m000) creation failed
    Thu Nov 24 11:03:30 IST 2011
    kkjcre1p: unable to spawn jobq slave process
    Thu Nov 24 11:03:30 IST 2011
    Errors in file /appl2/oracle2/proddb/10.2.0/admin/PROD_winsome/bdump/prod_cjq0_13539.trc:
    Thu Nov 24 11:04:21 IST 2011
    Beginning log switch checkpoint up to RBA [0x25b4.2.10], SCN: 14824976075
    Thu Nov 24 11:04:21 IST 2011
    Thread 1 advanced to log sequence 9652 (LGWR switch)
    Current log# 8 seq# 9652 mem# 0: /log1/PROD/log08a.dbf
    Current log# 8 seq# 9652 mem# 1: /log1/PROD/log08b.dbf
    Thu Nov 24 11:06:40 IST 2011
    ksvcreate: Process(m000) creation failed
    Thu Nov 24 11:10:00 IST 2011
    Completed checkpoint up to RBA [0x25b4.2.10], SCN: 14824976075
    Thu Nov 24 11:10:34 IST 2011
    kkjcre1p: unable to spawn jobq slave process
    Thu Nov 24 11:10:34 IST 2011
    Errors in file /appl2/oracle2/proddb/10.2.0/admin/PROD_winsome/bdump/prod_cjq0_13539.trc:
    Thu Nov 24 11:12:55 IST 2011
    ksvcreate: Process(q000) creation failed
    Thu Nov 24 11:15:12 IST 2011
    kkjcre1p: unable to spawn jobq slave process
    Thu Nov 24 11:15:12 IST 2011
    Errors in file /appl2/oracle2/proddb/10.2.0/admin/PROD_winsome/bdump/prod_cjq0_13539.trc:
    Thu Nov 24 11:17:14 IST 2011
    ksvcreate: Process(m000) creation failed
    please reply it urgent..
    in trc file
    $ cat prod_cjq0_13539.trc
    Dump file /appl2/oracle2/proddb/10.2.0/admin/PROD_winsome/bdump/prod_cjq0_13539.
    trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /appl2/oracle2/proddb/10.2.0
    System name: SunOS
    Node name: devserver
    Release: 5.9
    Version: Generic_118558-06
    Machine: sun4u
    Instance name: PROD
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Unix process pid: 13539, image: oracle@devserver (CJQ0)
    *** 2011-11-24 10:57:22.769
    *** SERVICE NAME:(SYS$BACKGROUND) 2011-11-24 10:57:22.430
    *** SESSION ID:(392.1) 2011-11-24 10:57:22.430
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 10:57:32.840
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 10:57:42.940
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 10:57:53.030
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 10:58:03.120
    Waited for process J000 to be spawned for 100 seconds
    *** 2011-11-24 10:58:13.200
    Waited for process J000 to be spawned for 110 seconds
    *** 2011-11-24 11:03:30.801
    *** 2011-11-24 11:07:41.160
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:07:51.240
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:08:01.320
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:08:11.390
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 11:08:21.480
    Waited for process J000 to be spawned for 100 seconds
    *** 2011-11-24 11:08:31.580
    Waited for process J000 to be spawned for 110 seconds
    *** 2011-11-24 11:10:34.930
    *** 2011-11-24 11:13:56.060
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:14:06.150
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:14:16.250
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:14:26.330
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 11:14:36.410
    Waited for process J000 to be spawned for 100 seconds
    *** 2011-11-24 11:14:46.480
    Waited for process J000 to be spawned for 110 seconds
    *** 2011-11-24 11:15:12.996
    *** 2011-11-24 11:18:15.140
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:18:25.240
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:18:35.340
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:18:53.340
    Waited for process J000 to initialize for 90 seconds
    *** 2011-11-24 11:18:53.340
    Process diagnostic dump for J000, OS id=3356
    *** 2011-11-24 11:19:29.960
    loadavg : 0.08 0.25 0.78
    swap info: free_mem = 91.27M rsv = 10468.67M
    alloc = 9840.79M avail = 291.52 swap_free = 919.41M
    skgpgcmdout: read() for cmd /bin/ps -elf | /bin/egrep 'PID | 3356' | /bin/grep -
    v grep timed out after 15.000 seconds
    Skipping stack dump because max dump time exceeded.
    Process diagnostic dump actual duration=36.292000 sec
    (max dump time=30.000000 sec)
    *** 2011-11-24 11:19:29.960
    *** 2011-11-24 11:19:40.060
    Waited for process J000 to initialize for 100 seconds
    *** 2011-11-24 11:19:40.060
    Process diagnostic dump for J000, OS id=3356
    *** 2011-11-24 11:20:08.770
    loadavg : 0.27 0.28 0.77
    swap info: free_mem = 92.57M rsv = 10465.16M
    alloc = 9837.60M avail = 297.86 swap_free = 925.42M
    skgpgcmdout: read() for cmd /bin/ps -elf | /bin/egrep 'PID | 3356' | /bin/grep -
    v grep timed out after 15.000 seconds
    *** 2011-11-24 11:20:51.830
    Stack:
    skgpgcmdout: read() for cmd /bin/sh -c '/usr/proc/bin/pstack 3356 2>&1' timed ou
    t after 1.290 seconds
    Process diagnostic dump actual duration=1 min 11 sec
    (max dump time=30.000000 sec)
    *** 2011-11-24 11:20:51.830
    *** 2011-11-24 11:21:01.930
    Waited for process J000 to initialize for 110 seconds
    *** 2011-11-24 11:21:01.930
    Process diagnostic dump for J000, OS id=3356
    loadavg : 0.12 0.24 0.71
    swap info: free_mem = 91.25M rsv = 10487.99M
    alloc = 9844.82M avail = 272.81 swap_free = 915.98M
    F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY T
    IME CMD
    8 Z oracle2 3356 1 0 0 0
    :00 <defunct>
    *** 2011-11-24 11:22:36.567
    Skipping stack dump because max dump time exceeded.
    Process diagnostic dump actual duration=1 min 34 sec
    (max dump time=30.000000 sec)
    *** 2011-11-24 11:22:36.567
    Killing process (ospid 3356): (reason=x4 error=0)
    ... and the process is still alive after kill!
    *** 2011-11-24 11:28:16.400
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:28:26.470
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:28:36.560
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:28:46.640
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 11:28:56.730
    Waited for process J000 to be spawned for 100 seconds
    *** 2011-11-24 11:29:06.810
    Waited for process J000 to be spawned for 110 seconds
    *** 2011-11-24 11:29:48.503
    *** 2011-11-24 11:35:26.030
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:35:36.130
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:35:46.210
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:35:56.310
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 11:36:06.390
    Waited for process J000 to be spawned for 100 seconds
    *** 2011-11-24 11:36:16.490
    Waited for process J000 to be spawned for 110 seconds
    *** 2011-11-24 11:38:51.157
    *** 2011-11-24 11:47:42.830
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:47:52.910
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:48:03.000
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:48:13.060
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 11:48:23.140
    Waited for process J000 to be spawned for 100 seconds
    *** 2011-11-24 11:48:33.230
    Waited for process J000 to be spawned for 110 seconds
    *** 2011-11-24 11:49:12.586
    *** 2011-11-24 11:52:35.420
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:52:45.520
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:52:55.610
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:53:05.700
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 11:53:15.790
    Waited for process J000 to be spawned for 100 seconds
    *** 2011-11-24 11:53:25.890
    Waited for process J000 to be spawned for 110 seconds
    *** 2011-11-24 11:53:59.129
    *** 2011-11-24 11:57:08.260
    Waited for process J000 to be spawned for 60 seconds
    *** 2011-11-24 11:57:18.350
    Waited for process J000 to be spawned for 70 seconds
    *** 2011-11-24 11:57:28.450
    Waited for process J000 to be spawned for 80 seconds
    *** 2011-11-24 11:57:38.540
    Waited for process J000 to be spawned for 90 seconds
    *** 2011-11-24 11:57:48.640
    Waited for process J000 to initialize for 100 seconds
    *** 2011-11-24 11:57:48.640
    Process diagnostic dump for J000, OS id=4205
    loadavg : 0.22 0.33 0.67
    swap info: free_mem = 91.70M rsv = 10505.02M
    alloc = 9858.01M avail = 251.46 swap_free = 898.47M
    F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY T
    IME CMD
    8 S oracle2 4205 1 0 39 20 ? 410092 ? 11:57:12 ? 0
    :00 ora_j000_PROD
    *** 2011-11-24 11:58:28.337
    Skipping stack dump because max dump time exceeded.
    Process diagnostic dump actual duration=39.697000 sec
    (max dump time=30.000000 sec)
    *** 2011-11-24 11:58:28.337
    *** 2011-11-24 11:58:38.430
    Waited for process J000 to initialize for 110 seconds
    *** 2011-11-24 11:58:38.430
    Process diagnostic dump for J000, OS id=4205
    *** 2011-11-24 11:59:10.850
    loadavg : 0.59 0.40 0.68
    swap info: free_mem = 91.31M rsv = 10505.02M
    alloc = 9858.01M avail = 251.19 swap_free = 898.20M
    skgpgcmdout: read() for cmd /bin/ps -elf | /bin/egrep 'PID | 4205' | /bin/grep -
    v grep timed out after 15.000 seconds
    Skipping stack dump because max dump time exceeded.
    Process diagnostic dump actual duration=32.420000 sec
    (max dump time=30.000000 sec)
    *** 2011-11-24 11:59:10.850
    Killing process (ospid 4205): (reason=x4 error=0)
    ... and the process is still alive after kill!
    $
    now i am not able to connect database

    Please see these docs.
    Ksvcreate: Process(M001) Creation Failed , Database hang [ID 1233079.1]
    ORA-00610 And/Or "unable to spawn jobq slave process " And/Or "Process(<>) creation failed" In The Alert Log And/Or TNS-12518/ TNS-12500 In Listener Log [ID 416244.1]
    DATABASE CRASH WITH SGA_TARGET [ID 747812.1]
    ORA-27300 ORA-27301 ORA-27302 ORA-27303 skgpspawn5 [ID 1125188.1]
    Database Crashes With Ora-00449 and Ora-00601 [ID 730287.1]
    If this is your production database, please log a severity 1 SR!
    Thanks,
    Hussein

  • Help needed urgently -Had a power (electricity) failure at re-installation

    I need your help in  fixing this BIG problem. I had an app reset which required me to re-install my 8900 Os. In the process of installation. Having gotten to the level where it says Do not disconnect your device..
    Loading JVM and the system application window
    waiting for device initialization
    A colleague of mine trying to resolve some issues with his printer mistakenly Pull my power cable off
    I tried starting all over again but the system would not recognize the phone and could not even come up with the com port number>
    the phone blinks intermittently too.
    How do I resolve this issue.
    Thank you

    Hi and Welcome to the Forums!
    Two possibilities for you:
    http://crackberry.com/blackberry-101-lecture-12-how-reload-operating-system-nuked-blackberry
    http://forums.crackberry.com/f3/how-wipe-jl_cmder-53502/
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help needed urgently on a problem..plzzz

    hi..this is a linear congruential generator. I have to implement it and i need the execution time for the program.
    for your understanding i'm providing an example below.
    Xn=(( a* xn-1 )+b) mod m
    If X0=7 ; a = 7 ; b =7 ; m=10
    Then
    X0 = 7
    X1 =((7 * 7) + 7))mod 10 = 6
    X2 = ((6*7)+7))mod 10 = 9
    X3 = ((9*7)+7) mod 10 = 0
    X4 = ((0*7)+7) mod 10 = 7
    Now since the cycle is being repeated i.e 7 appears again�so the period is 4 coz there are 4 diff nos. i.e 7,6,9,0�..
    help required urgently....your help will be appreciated...thankyou..

    Hi,
    I wrote the code so that it catches any cycle (not only the "big" one).
    Otherwise it will enter infinite loop...
    The time complexity is O(N*logN): it can do at most N iterations (here N is your 'm'), and in each iteration there can be O(log N) comparisons (since I maintain TreeSet).
    Interesting issue: is it possible to supply such (x0, a, b, m) tuple such that all possible values from 0 to m-1 will be output? I think no :)
    Here is the program:
    package recurr;
    import java.util.TreeSet;
    import java.util.Comparator;
    public class Recurrences {
         private static long x0, a, b, m;
         private static TreeSet theSet;
         public static void main(String[] args)
              long l0, l1, l2, l3;
              try {
                   x0 = Long.parseLong(args[0]);
                   a = Long.parseLong(args[1]);
                   b = Long.parseLong(args[2]);
                   m = Long.parseLong(args[3]);
              } catch(NumberFormatException nfe) {
                   nfe.printStackTrace();
              System.out.println("X[0]: " + x0 + "\n");
              long curr = x0;
              boolean cut = false;
              int i;
              // initialize the set
              theSet = new TreeSet(new LongComparator());
              // we can get at most m distinct values (from 0 to m-1) through recurrences
              for(i=1; i <= m; ++i) {
                   // iterate until we find duplicate
                   theSet.add(new Long(curr));
                   curr = recurrence(curr);
                   if(theSet.contains(new Long(curr))) {
                        cut = true;
                        break;
                   System.out.println("X[" + i + "]: " + curr + "\n");
              if(cut) {
                   System.out.println("Cycle found: the next will come " + curr + "\n");
              } else {
                   System.out.println("No cycle found!");
              System.out.println("----------------------------------");
              System.out.println("Totally " + (i-1) + " iterations");
         private static long recurrence(long previous)
              return (a*previous + b)%m;
         static class LongComparator implements Comparator
              public int compare(Object o1, Object o2)
                   if(((Long)o1).longValue() < ((Long)o2).longValue()) {
                        return -1;
                   } else if(((Long)o1).longValue() > ((Long)o2).longValue()) {
                        return 1;
                   } else return 0;
    }

  • Help needed Urgently- Rebate based on collected amount

    Dear all,
    I come across scenario while discussiion with client that they require rebate with collection. Details of the requirement are given below:
    1. SAP rebates run on billed values & set the accrual in rebate agreement on the rate what we have specified in the rebate agreement. Requirement is that, If i have billed on 1000$ & my accrual value is 100$ with the rate of 10%. If i collected 800$ instead of 1000$, then i need to pay the accrual on the basis of 800$ not on the basis of 1000$. It means i have to adjust accrual amount on the basis of 800$. Conclusion is that i have to pay not 100$ accrual instead less then 100$ on the basis of 800$ which i collected.
    2. In month 1 have billed on 5000$, my accrual amount is 500$ with rate of 10%. In the 2nd month i have to bill 1000$ and i have given an discount of 500$, it means my billed value is 500$ and my accrual amount is 50$@10%. In month 3 again i billed 500$ and my accrual amount is 50$@10%.
    Requirement is that, when i am going to pay the accrual to client, i should pay correct accrual for which he is entitled for. Means i should pay 100$ accrual not 600$ because i have already given an discount of 500$. Discount which i have given already of 500$ should need to be offest with the first month accrual of 500$. So remaning accrual is 100$.
    Great if somebody can help me out for the solutioning of the above requirements.

    Thanks Ivano,
    Somebody has started the conversation.
    Let me put my questions again.
    This requirement is nothing to do with Payment procedure in the agreement type.
    1. In any month if i billed 1000$, so my account receivable would be 1000$. My rebate for that month is 100$ at the rate of 10%. During customer receipt if i collected against my invoice 900$ instead of 1000$, my accrual needs to be corrected 90$ instead of 100$.
    I know this can not be fullfilled by standard SAP, by any thoughts on this welcomed.
    2. I know Rebate can be settled partially or full settlement by payment method( by cheque, bank transfer, or by credit memo) we have configure in rebate agreement type. But here requirement is totally different.
    Here, i need to pay the Rebate as a Discount instead of by cheque or by credit memo. While doing the partial or full settlement system will take into account collected accrual up to that day & apply as a discount to the final bill.
    Scenario is like that sometimes customer asked to give us the discount on bill for whatever they accrued so far.
    This is again cannot solved by standard SAP, but any thought by any body welcome. We have already thought that we need to enhance the solution.
    Solution needed urgently.

Maybe you are looking for

  • How to set password never expires for a user?

    Hello, I can't seem to find in the Administrative Console a place to enable "Password never expires". I know that if I edit the USR_PWD_NEVER_EXPIRES field in the OIM DB and put the value '1' it will work. However, I'd like to know how and if it is p

  • How to completely delete unverified paypal account with some balance

    Hello there, I am from Bangladesh. I am working on UpWork and Elance as a freelance webdeveloper. PayPal doesn't support our country. I was working on an E-Commerce website. I needed a PayPal account for testing transaction. So I created a PayPal acc

  • How does this program group and cluster these button values into an array?

    In the attached program, there are 6 buttons in a cluster and 1 individual button. These buttons control a bunch of different relays to control power to different components of a single device. Right now the program works in that I can control the 6

  • Databound XML not updating

    I have an XML variable that is populating controls.  The XML is populating the controls as it should, however when I make a change to the data in the control, shouldn't the XML be updating automatically?  Or, is there some extra setting up required s

  • Handling wave files

    Hi, I want to develop a program that deals with wav files. I need to read the bytes of the wav file similar to how pixels of an image could be read using the getRGB() method . Is it possible with java. Is there any method to read the contents of the