Some help required for my Zen

My Zen (Sleek Photo) is constantly crashing, so a black screen. When it happens, none of the buttons are responsi've and I can only turn it off by pressing the reset button. After resetting, the same thing will happen again and again. Occasionally it will take 2 seconds to crash and it has taken up to 2 minutes, when I was hopeful that it had sorted itself out.
Thanks?in advance for?any assistance.

Just a quick bump, as I still can't get it working.
To make a correction, it's not a Sleek Photo. It's a 6gb Zen, sorry.
I managed to clean up, reboot and reinstall my firmwire but I'm still having the same problem. I can't get it to work consistently at all. If I charge it for 5 hours, I may get 2 minutes of playback, but then it's will crash again. I don't know what to do, honestly. I've tried the MP3 recover tool and that had no effect.
Any help, guys?

Similar Messages

  • Help required for update SQL

    Hi Guys,
    I am looking for some help to frame the update query.
    I have two tables temp_1 and temp_2.
    I want to update temp_2 based on data from temp_1. However i do not want to make an update where temp_1 has null value.
    One approach i can think of is creating two different update statements but is there any chance to get it done through
    only one statement. Also i would like to add here that temP_1 has 250K data and i going to make update on approx 500K
    rows from temp_2. So i need to look from performance point of view as well.
    Temp_1                       temp_2
    Col1   Col2  Col3        col1     col2    col3
    1 abc   abc                  1        null    null
    2 abc   null                  2         xyz     xyz
    3 null  null                   3          xyz     null
    After update i am looking forward to get data in below format.
    temp_2
    col1     col2    col3
    1        abc     abc
    2        abc     xyz
    3        xyz     null  

    USE TESTdb
    go
    create table express (col1 int, col2 varchar(25), col3 varchar(25))
    go
    create table express2 (col1 int, col2 varchar(25), col3 varchar(25))
    go
    insert into express values (1,'abc','abc'),(2,'abc',null),(3,null,null)
    insert into express2 values (1,null,null),(2,'xyz','xyz'),(3,'xyz',null)
    select * from express
    select * from express2
    update express2
    set col2= case when x.col2 is null and e.col2 is not null then e.col2
    else x.col2
    end ,
    col3= case when x.col3 is null and e.col3 is not null then e.col3
    else x.col3
    end
    from express e inner join express2 x on e.col1=x.col1
    --drop table express, express2
    ebro

  • Image - maps are not working in Firefox but it does work in IE. Some help required.

    Hey there,
    Last week i've been building a website for our company. However, there is still a problem with our banner/slider. I've uploaded some images and the slider is currently working. But the image maps ,using <map> & <area> taggs, are not functional in FF. They do work in IE so I suppose it should be working correctly.
    I've tried using Chrome & Safari but the problem keeps persisting.
    Some help would be nice (:
    Marnix.

    Doesn't work in Firefox, Chrome, and Safari? <br />
    Sounds like you're using non-compliant code.
    http://www.w3.org/TR/html5-author/the-map-element.html <br />
    http://www.w3.org/wiki/HTML/Elements/area
    You could try posting the URL to a test case at the Web Development / Standards Evangelism forum at MozillaZine, and see what they have to say. The support helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Help required for unicode compatibilty

    Dear All,
    We are in a process of analyzing the impact of unicode compatibility for our environment.
    Following is our scenario:
    - ECC6.0 is non unicode systsem
    - Need to buid unicode CRM 7, SCM 7, PI 7.1 and BI7
    - Need to integrate the above systems to non unicode ECC system.
    Our questions are :
    1. Is there any performance consideration when using communication between an Unicode and non-Unicode system?
       Is Unicode - Unicode faster than Unicode - non-Unicode communication performance wise?
    2. Do we face any  technical or functinal problems while trying to integrate
       unicode BI/ NW Java Stack  to non unicode systems.
    3. Do we need to review our sizing estimations due to unicode implemenation?
    5. what will be the storage consumption increase for unicode systems compared to non unicode?
    It would be greatly helpful for me if you can clarify these doubts.
    Thanks and Regards

    Hi,
    1. I think no one has really measured this. I expect a slightly higher requirement for Unicode <--> Non-Unicode interfaces.
    2. Please have a look at SAP Notes 838402, 73606, 975768 and 1358929 for restrictions in Non-Unicode systems. SAP highly recommends to go for Unicode in the whole landscape.
    3. and 5.  If you use the SAP quicksizer (http://service.sap.com/quicksizing), then Unicode is integrated.
    " Please note that the Quick Sizer results include Unicode requirements. For more
    information on additional requirements caused by Unicode, see
    http://service.sap.com/unicode -> Unicode Media Library -> Unicode information on
    specific topics: SAP Business Suite Unicode Hardware Requirements"
    Best regards,
    Nils Buerckel
    SAP AG

  • PCUI 4.0, Search Help Required for New field

    Hi everyone
    I am working in CRM 4.0 Sales Order application
    We created a new field in CRM sales Order in Header level in SAP GUI through EEWB.
    The search help for the new field is working fine in SAP GUI. We want to add the same field with F4 help functionaliity in PCUI as well.
    The field has been added in structure CRMT_BSP_SLS_OD1_General. It also shows domain value for the field however Origin of input field ie empty
    The field has been added in PCUI and is successfully showing data inputted in SAPGUI
    However we need search help functionality for the field
    i tried these two steps
    1) i checked on domain value checkbox and changed the field from input to dropdown. However the dropdown is empty in PCUI. Whenever i check box domain values for some field then all the possible values in SPA GUI are displayed in PCUI, however this is not working here.
    2) I put Value_table in F4 of the field
    This is also throwing up empty values
    Am i missing something in this case
    Please let me know how to go about it
    TIA
    Asad

    Hi Frederic
    Thanks for your response
    I am not sure what is meant by regenerating the field group in this case
    I added the entries for my view in the field group and generated the layout of the field group (If this is what you mean)
    The field is working fine. I am able to save values to the field and able to see values saved in GUI.
    I haven't linked search help of the field in PCUI
    I am not sure how to go about it.
    I used the data element in the structure for the field.
    The data element has Domain entry in <b>Entry Help/Check</b> of the structure
    If i check the Domain Value checkbox in my field group then the domain values should be available in dropdown if the field is dropdown
    However i am not able to see the possible values of the field (It is present in SAP GUI)
    Does something else needs to be done in this case
    TIA
    Asad

  • Some help needed  for guides.

    Hi,
    I need this script, or another, to place guides in "dead-centre" (50%/50%)horizontal and vertical!
    Since I'm a nobody in Jsx I need some help, badly!! :)
    For 2 day's I've seen nothing but "errors" :(
    Can somebody help me, please?
    Regards
    Mahon
    Code: start
    // make guideline
    function guideLine(position, type) {
    // types: Vrtc & Hrzn
    // =======================================================
    var id296 = charIDToTypeID( "Mk " );
    var desc50 = new ActionDescriptor();
    var id297 = charIDToTypeID( "Nw " );
    var desc51 = new ActionDescriptor();
    var id298 = charIDToTypeID( "Pstn" );
    var id299 = charIDToTypeID( "#Pxl" );
    desc51.putUnitDouble( id298, id299, position );
    var id300 = charIDToTypeID( "Ornt" );
    var id301 = charIDToTypeID( "Ornt" );
    var id302 = charIDToTypeID( type );
    desc51.putEnumerated( id300, id301, id302 );
    var id303 = charIDToTypeID( "Gd " );
    desc50.putObject( id297, id303, desc51 );
    executeAction( id296, desc50, DialogModes.NO );
    Code: End

    Please try this...
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    guideLine(app.activeDocument.width.value/2, 'Vrtc');
    guideLine(app.activeDocument.height.value/2, 'Hrzn');
    app.preferences.rulerUnits = strtRulerUnits;
    app.preferences.typeUnits = strtTypeUnits;
    function guideLine(position, type){
        var desc27 = new ActionDescriptor();
            var desc28 = new ActionDescriptor();
            desc28.putUnitDouble( app.charIDToTypeID('Pstn'), app.charIDToTypeID('#Pxl'), position );
            desc28.putEnumerated( app.charIDToTypeID('Ornt'), app.charIDToTypeID('Ornt'), app.charIDToTypeID(type) );
        desc27.putObject( app.charIDToTypeID('Nw  '), app.charIDToTypeID('Gd  '), desc28 );
        executeAction( app.charIDToTypeID('Mk  '), desc27, DialogModes.NO );

  • Help Required for Oracle 9i Installation on Fedora Core 3

    I am new to Linux on Oracle and wanted to set up oracle on Fedora Core 3.
    I have downloaded Oracle9i Database Release 2 Enterprise/Standard Edition
    for Intel Linux from http://www.oracle.com/technology/software/products/oracle9i/htdocs/linuxsoft.html
    I have downloaded it on Windows XP Can any one please suggest me what should be the next steps to install it on Fedora Core 3?
    Thanks in advance

    So copy downloaded installation from Windows to Linux machine using SCP.
    You can download GUI SCP client here: http://winscp.net/eng/index.php
    If you preffer command line tool then you can use PSCP tool: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
    Then use some installation steps for Fedora for example you can use mine (follow exactly all steps):
    http://ivan.kartik.sk/oracle/install_ora9_fedora.html
    Just little advice don't use root to login to Linux computer, use oracle instead (once it is created).

  • Seeburger help required for 810 and Dispatch Advice (IDOC type DESADV).

    Hi All,
    1. Please let me know blogs which clearly shows settings for Seeburger components for 850 (Purchase Order) to IDOC Scenario
    --- Seeburger Workbench
    --- Seeburger Mapping Designer (BIC)
    --- Seeburger Counter and Varaibles
    --- Seeburger AS2 Spoke
    --- Any other Seeburger Component setting required
    I have understand blog for 850 -- /people/rajeshkumar.pasupula/blog/2009/08/05/wanna-implement-seeburger-for-edi-find-the-booster
    2. Anybody has blog for 810 or Dispatch Advice (IDOC type DESADV).
    3. Can anybody provide me Mapping Logic (at field level) done in XI/PI for 850, 810 , Dispatch Advice (IDOC type DESADV) .
    Regards

    Hi Rickkk,
    1. Please let me know blogs which clearly shows settings for Seeburger components for 850 (Purchase Order) to IDOC Scenario
    --- Seeburger Workbench
    --- Seeburger Mapping Designer (BIC)
    --- Seeburger Counter and Varaibles
    --- Seeburger AS2 Spoke
    --- Any other Seeburger Component setting required
    For SEEBURGER workbench please go through this blog and navigate the enbebbed links furthur to know about Seeburger workbench too.
    /people/prateek.srivastava3/blog/2009/08/01/seeburger--part-1--the-basics
    2
    2. Anybody has blog for 810 or Dispatch Advice (IDOC type DESADV).
    For 810 i think the procedure would be the same but themseeburger mapping program that validates the ANSX 810 would be different.As far as 997is concerned 997 is a functional acknowledgement.Its a genric format that is used to send acknowledgement for any EDI transaction set that has been sent.
    3. Can anybody provide me Mapping Logic (at field level) done in XI/PI for 850, 810 , Dispatch Advice (IDOC type DESADV) .
      The logic will be based on the trading partner guidelines which will contain the description of all the semantic and syntactiic description about the segments ,its feilds.we need to consider the guidelines and target side specifications too while mapping.
    Thanks,
    Ram.

  • Some help required with logic for a dynamic sql query

    i have below code but not sure how to resolve this problem - what i need is to be able to dynamically
    the problem:
    i have a rabbge of paratmeters coming in from a form and need to be able to create a dynamic query string to go into a prepared statement object.
    the problem i have is there are 2 fields year range and year.
    if year range is none i need to create the query string as such :
    where the value of year can be serached on exactly
    str.append("VOLUME_YEAR = ? ");the probelm is if the year range is 5 or year range is 10 i dont know how to maipulate the query string to be able to set the string such that i can then place the year value in the place holder in preparedStatement.setInt(1, year)
    how can i create the intial query string ie.- what are the possible things that i can do. - i'm thinking of things like putting some type of between or such type query statement - but not at all sure how the syntax would go - ie. how would i use the year value and how would i create this dynamic part of the query string so that the JDBC regonises it?
    thanks for any help.
    public String setVolumeYearQuerySt(String year, String yearRange, StringBuffer str){
              String volumeYearQueryString = null;
              Sring doAction= null;
              if (yearRange.equals("None")){str.append("VOLUME_YEAR = ? ");}
              else if(yearRange.equals("5 Years")){doAction = "Nothing";}
              else if (yearRange.equals("10 Years")){doAction = "Nothing";}
              return volumeYearQueryString;
              }

    Saish - thanks a lot for the code example.
    Although, i think its far too advanced for me to understand and try to manipulate it and fit my problem. I'm pretty new to programming as you can probably see from my simple if else type statements. But i'm going to give it a try and see how it goes.
    could you please be kind enough to demonstrate how i could use the above syntax to do the following. --
    i have a year being entered in form .  in the database there is a column year volume which contains year in single year value format and also in a year range  value format - thus as in below - how could i do this -
    eg.
    user can enter a value in the year field a single value or a range value - then he can select +/-5 or 10 yrs range on that value - the DB holds the values as single values and ranges as below -
    one suggested apporach is as follows if a single user is alloweed to enter only a single value in the filed and select a query range +/- 5 etc..
    volume year of �1926-1928� and the user enters �1927�, the query has to find all records where
    look for records that are �less than or equal to� 1927.  It then has to check to see if it contains a range.  For those that it finds containing a range, it has to work out what the �upper� year is and check to see if that is �greater than or equal� to 1927.  If it is, then that is a possible matchanother approach that is suggested is to have a drop down with all years from databse and user is only llowed to select value from drop down and following logic is suggested :
    Because volumes can be received as ranges (e.g. 1964-1966), some extra coding is required where the user asks for a Year Range (such as + or � 5).
    Using the Year selected from the dropdown list, split it into 2 values, a low year and a high year. For example, if �1965-1968� is selected from the year dropdown, split it into �1965� and �1968� for the low year and high year respectively. If �1964� is selected from the year dropdown, split it into �1964� and �1964�. Now take the Year Range that the user has entered into account. For example, if the user has entered 5, subtract 5 from the low year and add 5 to the high year. Using these values, include the following search criteria in the query to the database:-
    (<low year>     BETWEEN
                 left (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1)
         AND     right (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1))
    OR     (<high year>     BETWEEN
                 left (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1)
         AND     right (VOLUME_YEAR, charindex ('-',VOLUME_YEAR + '-') - 1))regards - i think if i could solve the first approach that would be something good as its most user freindly
    thanks

  • Help required for PLSQL or with some Analytical Function.

    Hello All
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    I have couple of questions with following dataset and insert into a table
    With t As
    SELECT '2011' YR, FN1 File_name,1 rec_seq From Dual Union All
    SELECT '2011' YR, FN1 File_name,2 rec_seq From Dual Union All
    SELECT '2011' YR, FN1 File_name,3 rec_seq From Dual Union All
    SELECT '2011' YR, FN1 File_name,4 rec_seq From Dual Union All
    SELECT '2011' YR, FN1 File_name,5 rec_seq From Dual Union All
    SELECT '2011' YR, FN1 File_name,6 rec_seq From Dual Union All
    SELECT '2012' YR, FN1 File_name,7 rec_seq From Dual Union All
    SELECT '2011' YR, FN1 File_name,8 rec_seq From Dual Union All
    SELECT '2010' YR, FN1 File_name,9 rec_seq From Dual
    SELECT C_CAND_ID,MAX(C_CAND_ID) OVER (PARTITION BY C_CAND_ID ORDER BY YR) FROM
    SELECT DISTINCT COUNT(*) OVER (PARTITION BY YR ORDER BY FILE_NAME) "C_CAND_ID",
    YR
    FROM
    (select YR, FIle_name
    from t
    How to find year which is not equal to count with maximum year (2011) and insert into errorlog table
    How to find all distinct years --- 2011, 2012 and 2010 and insert into error log table
    Target table is
    Create table errorlog
    (Error_code number,
    Errorheader varchar2(100),
    error_details varchar2(1000),
    rec_sequence     number
    output is
    errorcode     errorheader               errordetails                         rec_sequence
    1          Year not as maximum count     The year 2012 not equal to 2011 the max count          7
    1          Year not as maximum count     The year 2010 not equal to 2011 the max count          9
    2          distinct years are          the distinct years are 2010,2011,2012               0
    also I have couple of other questions like
    How to find YR with maximum number of records ----- the answer should be 2011.
    How to find count of distinct years ---- the answer should be 3
    Please give me some guidence or help
    Thanks

    How to find year which is not equal to count with maximum year (2011) and insert into errorlog table
    How to find all distinct years Maybe following query gives you a start to identify the necessary information:
    SQL> with t as
    select '2011' yr, 'fn1' file_name,1 rec_seq from dual union all
    select '2011' yr, 'fn1' file_name,2 rec_seq from dual union all
    select '2011' yr, 'fn1' file_name,3 rec_seq from dual union all
    select '2011' yr, 'fn1' file_name,4 rec_seq from dual union all
    select '2011' yr, 'fn1' file_name,5 rec_seq from dual union all
    select '2011' yr, 'fn1' file_name,6 rec_seq from dual union all
    select '2012' yr, 'fn1' file_name,7 rec_seq from dual union all
    select '2011' yr, 'fn1' file_name,8 rec_seq from dual union all
    select '2010' yr, 'fn1' file_name,9 rec_seq from dual
    select max (yr) keep (dense_rank last order by cnt_yr) over () max_cnt_yr, /* gives you the year with the most entries */
           t.*  /* rest of table */
      from (select count (yr) over (partition by yr) cnt_yr,   /*  counts of a particular year ? */
                   count (distinct yr) over () cnt_distinct_yr,  /*  how many distinct years ? */
                   t.*
              from t) t
    MAX_CNT_YR          CNT_YR CNT_DISTINCT_YR YR   FILE_NAME         REC_SEQ
    2011                     1               3 2010 fn1                     9
    2011                     7               3 2011 fn1                     2
    2011                     7               3 2011 fn1                     3
    2011                     7               3 2011 fn1                     4
    2011                     7               3 2011 fn1                     6
    2011                     7               3 2011 fn1                     1
    2011                     7               3 2011 fn1                     5
    2011                     7               3 2011 fn1                     8
    2011                     1               3 2012 fn1                     7
    9 rows selected.

  • Urgent Help Required for Connect Four Game

    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
         int player1;
         int player2;
         public PlayGame()
              //this.player1 = player1;
              //this.player2 = player2;
         public void StartGame()
         try{
         // int X = 0, Y = 0;
         //int value;
         int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
         int[][] ConnectFourArray = new int[6][7];
         int num1, num2;
         for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
         //Player player1;
         //Player player2;
         public ClassConnectFour()
              //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end class
    I am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda
    //

    Hi,
    Thanks for your help but I really don't understand the table lookup algorithm. Could you please send me some code to implement that.
    I will send you the formatted code as well
    Thanks for your help.
    looking forward to your reply.
    Koonda
    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
    int player1;
    int player2;
    public PlayGame()
    //this.player1 = player1;
    //this.player2 = player2;
    public void StartGame()
    try{
    // int X = 0, Y = 0;
    //int value;
    int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    int[][] ConnectFourArray = new int[6][7];
    int num1, num2;
    for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
    //Player player1;
    //Player player2;
    public ClassConnectFour()
    //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end classI am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda

  • Help required for Excel Pivot.

    Given below my data table with sample data.  
    I have a requirement to create a pivot template as shown below. Data should be displayed group by Year and Allowance name. For each year, I have to get the sum of points earned by each allowance and the balance points exists for that particular year.
    How can I achieve this using Pivot in Excel? Please help me on this.

    Hi,
    In BOM, there is onr item category "R", variable size item is there. Using this you can achieve this. By exploring the Variable size item you can get some idea.
    Regards,
    V. Suresh

  • Help Required for Adobe Forms.....

    Hello All,
    I have a very unique requirement as such we have a form and in the "TO" string field where we specify the email address of the receivers, now we want to send address memo to multiple users, however in our search window we can search only one name at a time & need to open search window every time for every new user to be included in the address field.  We need to have AJAX type of functionality such as AJAX does asynchronous calls to the back-end and get help values dynamically even when the user is entering help values.
    In my case if I start typing S in the manager filed, an event should get triggered and return back the names of all managers who start with the letter S,
    If we go to Google.com and start typing, as you type,e Google  gets help values and displays them below the  input field. This is based on making asynchronous calls to the back-end.
    We want to send interactive adobe forms to the multiple users for their approval or information. while entering email ids of multiple users, we need to have functionality as described above.
    I'll appreciate if anyone can help with some clear steps, document link or working code sample etc.
    Regards,
    Moderator message: sorry wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on May 25, 2011 10:49 AM

    Dear Sunitha,
    Thanks for your reply.
    Can you please specify how to create a virtual table and Associated dataset in Adobe Forms.
    Our scenario is to create a Sales Order in SAP via Adobe Forms through Offline.
    Please find the below image.
    Data for Company Code and Plant is available in 2 Internal Table.
    Please assist in the following
    How to combine these 2 Internal tables inside Adobe Forms.
    Filter the values of Plant based on Company Code.

  • Help required for temporary removing node 2 from the cluster

    Hi Support,
    There are some hardware issues on node 2 of 11g RAC cluster and vendor going to fix it;
    We want to make node 2 not available until they fix it;
    The user will continue with node 1 of the cluster;
    Following are the current status of the site and I'm considering to perform the folowing task
    while the folllowing command from node 1, i got the following output
    D:\srvctl status database –d EPVAL
    Instance epval1 is running on node corskmaps001
    Instance epval2 is running on node corskmaps001
    D:\srvctl status database –d EPPROD
    Instance epprod1 is running on node corskmaps001
    Instance epprod2 is running on node corskmaps001
    I made the following steps in chorological order; I appreciate if someone can correct me if I made any mistake or add/amend/update as per requirement.
    Assuming corskmaps002 is our passive mode which will be taken away by HP for hardware checking;
    srvctl stop instance –d EPPROD -i EPPROD2
    srvctl stop instance –d EPVAL -i EPVAL2
    srvctl stop listerner_corskmaps002 –n corskmaps002
    srvctl stop nodeapps -n corskmaps002
    Do we require stopping service also once we stop the instance? Following are the commands if your answer is yes;
    srvctl stop service -d EPROD -i EPPROD2
    srvctl stop service -d EPVAL -i EPVAL2
    srvctl disable service -d EPPROD -s EPPROD2
    srvctl disable service -d EPVAL -s EPVAL2
    I appreciate help
    Thanks

    Hi Bjoern,
    I agree with you, very valid point, thanks for that;
    Just for clarification, do you thing the sequence should be like this?
    ********disable command to start with***********
    srvctl disable service -d EPPROD -s EPPROD2
    srvctl disable service -d EPVAL -s EPVAL2
    *********than instance stop commad**********
    srvctl stop instance –d EPPROD -i EPPROD2
    srvctl stop instance –d EPVAL -i EPVAL2
    ************than listener stopping command********
    srvctl stop listerner_corskmaps002 –n corskmaps002
    *************than node stopping command*********
    srvctl stop nodeapps -n corskmaps002
    *********do we also require stopping of the service ?>***************************
    Do we require stopping service also once we stop the instance? Following are the commands if your answer is yes;
    srvctl stop service -d EPROD -i EPPROD2
    srvctl stop service -d EPVAL -i EPVAL2
    Can you please eleborate further
    Then, you also might want to add '-o transactional' or "transactional local" to the
    instance stop command so that running transactions are not affected by this.
    Thanks

  • CAT2 - Help required for changing data

    The requirement I have is, if the data is entered for a particular activity type in CAT2, and if it exceeds the default hours alloted for that week, the extra hours need to be split into different activity types.
    Say, this is the data entered: (Max of 35 Hrs per week as per IT0007) (Click on the link below to see sample data!)
    [http://img32.picoodle.com/img/img32/5/12/21/f_datam_9dfadb2.jpg]
    (The value for Thu is 5 and not 6 in the initial entry.)
    The data has to remain exact until it reaches 35 hours and then the extra hours need to be split and entered in a different activity type. (BU is also counted as regular working hours and value for BU is to remain same)
    I tried using the user-exit CATS0002 but since the user exit gets only the value of a single cell at a time, I am not able to process the data for my requirement. and this user exit is triggered only for the cells where the value is changed... if the data is already entered and the user changes some cell, I don't get the whole data entered and hence, I can't modify the already existing data on the timesheet.
    Has anyone coded for a similar scenario? Your help will be really appreciated.
    P.S: I am working on ECC 6.0

    Hi Nazim,
    There is an user-exit for validating the whole time sheet (I think it is  nr. 6, but I am not sure), in this one you could check all the hours, but I am not sure if it will suffice for your requirement.
    Regards,
    Martin

Maybe you are looking for