OEM mass deploy across multiple platforms

Our OEM is on redhat linux, our databases are on solaris. When I go to download patches I have to download different versions for the different OS's? I need to patch a host of Grid Control agenst on about 15 servers. It would be easier if I could mass deploy these.
The download script does not work, since the download directories have OS version names.

the OS software version is differnet also. Its not going to compile. That is just one example. I am hoping there is a download of multiple versions of unix/linux and I can mass deploy them through the network.

Similar Messages

  • I want to set up a home network to be able to watch my movies and litsen to music across multiple platforms without keeping my laptop connected.

    I want to set up a home network to be able to watch my movies and litsen to music across multiple platforms.  I have movies purchased from itunes as well as movies from my DVD collection that i converted to an .m4v format.  I currently have these movies stored on an external harddrive. To watch a movie on my apple tv I have to ensure my external hard drive is connected to my macbook pro, then play the movie on my macbook pro and "mirror" it to my apple tv.
    Ideally I would like to be able to watch movies from my collection without having to have my laptop on and work from that.  Is it possible to navigate my collection from my Apple TV and play it on my Apple TV.  My macbook pro is the machine I primarily use for work and school it is quite the protological nuissance to have to hook all that up everytime I want to watch a movie.
    My thoughts are that I could take my old dekstop pc, attach an external hard drive to that and make that my "media storage".  If I were to do that would I then be able to watch movies as well as select which movie I want to watch from my library through my apple TV without my macbook pro being in the equation?  Or if I should desire to watch a movie from my library through my Macbook Pro, Iphone 4s, and ipad is that possible?  I basically want to set up my library to be accessible from any of my devices.
    My devices are; the previously mentioned Apple Tv, macbook pro, iphone 4s, ipad 3. I also have a desktop PC running windows 7, xbox 360 and playstation 3 (the xbox and PS3 would be nice if they could too but wouldnt break my heart as they are my roommate's and not mine so I rarely use them.)
    Thank you for any help/advice you guys may have!

    atv's can only access media from
    1. a computer which is turned on running itunes
    2. the internet
    no other options
    and NAS's which say they can work as itunes libs don't work

  • How to deploy across multiple mid-tier instances

    I was hoping someone may be able to point me in the right direction. We have two portal/webcache mid-tier instances on release 10G AS 9.0.4.2. On the ias_admin home page I tried to create a cluster and add the two instances to a cluster but it won't let me do it for a portal type install. If that is the case, how do people handle deploying such things as portlet providers and data sources across multiple mid-tier instances? Here is the concern from our Portal admin:
    As discussed, the inability to cluster the mid-tiers will cause issues in production as we try and keep deployed portlet providers with their required configurations and datasources in synch. While deploying and configuring 1-2 mid-tiers for a given portlet manually is do-able, the chance for out of synch components or configuration settings is amplified for each additional mid-tier. If we manually deploy 5 mid-tiers and accidently mistype the datasource for example, we'll have a random error that will occur once requests are attempted to be serviced by that mid-tier. This will make troubleshooting difficult. We really need some way to deploy and configure settings one time and have these items propagated to all the other mid-tiers.
    What is the best way to handle this scenario?
    Regards and thanks for any info,
    Chris Schumacher
    Embry-Riddle Aeronautical University

    Jar files are not stored on the file system
    Temporary files are held in bpel/domain/default/tmp folder, whereas jar files in the dehydration store for clustered deployment.
    If you configure BPEL (not AS) cluster - files will be propagated to all nodes.
    MJ

  • OEM mass deploy question

    The docs basically say that every server database has to have the same path for the oracle home. We have some older databases with homes in different directories. Is it really necessary for us to go to each oracle home on the servers and run the Download script or is there a way to use the mass deploy if I get a list of the different oracle homes?

    the OS software version is differnet also. Its not going to compile. That is just one example. I am hoping there is a download of multiple versions of unix/linux and I can mass deploy them through the network.

  • SOA 11g  Composite Deployment across multiple Instances: Best Practice

    Hi,
    We have a requirement where we need to deploy the composite acrocss mutilple instances(DEV,TEST,Production) without JDEV.
    We are using SOA11.1.3.3(cluster) and linux OS.
    Pls suggest me what is the best practice to deploy the SOA composite.
    Thanks,
    AB

    Why there are different ways to deploy the composite in different environment? Depending upon the environment, it's business importance increases and hence access to developers get more restricted and hence there are many ways for deploying. If you are developing an application, you would not like to export a SAR and then login to EM console to deploy it. For a developer it is always very convenient to use IDE itself for deployment and hence JDev is preferably used for Dev instances for deployment.
    Once development finishes, developer will check in the artifacts into version control system and if you want to deploy to a test instance then you have to check out the stable version, compile it and package it and then only you can deploy. Hence for test instances, ANT is the preferable mode for deployment. (Remember that developers may not be able to connect to Test environment directly and hence deployment from JDev is not possible)
    Once a configuration gets tested in Test env, it's SAR should be checked in into version control system, so that it would not be required to recompile and repackaging of it. This will also make sure that any artifact which is not tested on Test instance, must not go to higher instances (like UAT/PROD). Now in Pre-Prod/UAT/Prod, you may simply access the EM console and deploy the SAR which is already tested in Test instance. Remember that there will be very limited access to such critical environments and hence using Role based access of EM it would be very easy to deploy the resources. Moreover, it is more secure mode of deployment because only those users which have appropriate priviledge, will be able to deploy, and it would also be easier to track the changes.
    What is the proc and cons if we use only one way to deploy the composite across the Instances...As such there is no major pros and cons. You may use EM for all environments but it may be a little discomfort for developers/deployers of test environment. You may also use ANT for all the environments but it is not suggested until and unless you have a very good and secure process in place for deployments.
    Regards,
    Anuj

  • Executible Jar Across multiple platforms

    Hey All,
    I'm in an Intro-to-Java class and for my final project I created a BreakOut game. I'm hyperlinking to the Jar file here: http://ihoyasaxa.com/breakoutBreakout . The file works fine in my Ubuntu 7.10 system and my Vista RC1 system but when I send it to others who have Mac's, and XP it only shows the frame I initialize and a black background. I have a feeling it has to do with my FileLoad class, but I am not sure.
    I am not sure how you guys feel about downloading the executable jar so I can post the code to the program but it is split across several class files.
    Anyways, any advice is great.
    I added the code:
    package cosc175.Sessa.Final;
    public class BreakOut {
         BreakOutGUI gui = null;
         BreakOutPaint bop = null;
         Blocks blocks = null;
         Pad pad = null;
         public BreakOut(){
              bop = new BreakOutPaint();
              gui = new BreakOutGUI(bop);
              gui.setupFrame();
              blocks = new Blocks(bop);
              //ball = new Ball(gui, bop);
         //     bos = new BreakOutScore();
              //ball = new Ball(gui);
              pad = new Pad(bop, gui);
          * @param args
         public static void main(String[] args) {
              new BreakOut();
    package cosc175.Sessa.Final;
    import javax.swing.*;
    import javax.swing.border.LineBorder;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.net.*;
    import java.text.*;
    import java.util.StringTokenizer;
    public class BreakOutGUI extends JPanel   {
         private static final long serialVersionUID = 1L;
         JFrame f = null;
         JPanel startMenu = null;
         JTextPane tp  = new JTextPane();
         JLabel finalScore = new JLabel();
         BreakOutPaint bop;
         Graphics g;
         Container c;
         Ball ball;
         int checkGame = 0;
         int holdGame = 0;
         int score;
         String [] lineRead = new String[11];
         JPanel [] row = new JPanel[13];
         BufferedWriter saveFile;
         String nameOfHS;
         JButton newGame;
         JButton instructions;
         JButton exitInstructions;
         JButton highScores;
         JButton exitBTN;
         public void btnFormat(JComponent x){
              x.setBorder(new LineBorder(Color.white, 2));
              x.setMinimumSize(new Dimension(300, 50));
              x.setMaximumSize(new Dimension(300, 50));
              x.setPreferredSize(new Dimension(300, 50));
             x.setForeground(Color.orange);
             x.setBackground(Color.GRAY);
             x.setFont(new Font("Arial", Font.BOLD, 18));
    //     FileLoad fl = new FileLoad();
         Label lscore = new Label("TES");
         JTextArea ta = new JTextArea();
         String newLine = "\n";
         Blocks b;
         int countScore = 0;
         int ballX = 10;
         int ballY = 800;
         int startNewGame = 0;
         int padX = 160;
         int padY = 440;
         public BreakOutGUI(BreakOutPaint bop2){
              bop = bop2;
              g = getGraphics();
              ball = new Ball(this, bop);
              newGame = new JButton("New Game");
              instructions = new JButton("How To Play");
              exitInstructions = new JButton("Back To Start Menu");
              exitBTN = new JButton("Back To Start Menu");
              highScores = new JButton("High Scores");
              btnFormat(newGame);
              btnFormat(instructions);
              btnFormat(exitInstructions);
              btnFormat(exitBTN);
              btnFormat(highScores);
         public void setupFrame(){
              f = new JFrame();
              f.setSize(400, 520);
              f.setBackground(Color.black);
              JPanel game = new JPanel();
              //f.add(new BreakOutPaint());
              f.setResizable(false);
              f.setVisible(true);
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              c = f.getContentPane();
              c.setLayout(new BoxLayout(c, BoxLayout.PAGE_AXIS));
              c.setBackground(Color.black);
              addStartMenu();
         public void addStartMenu(){
              JPanel row1 = new JPanel();
              row1.setLayout(new BoxLayout(row1, BoxLayout.LINE_AXIS));
              newGame.addActionListener(new  ActionListener(){
                    public void actionPerformed(ActionEvent ae){
                         if((bop.getStartGame() == 0) && (checkGame == 0))
                             bop.startGame(1);
                         else if(checkGame != 0)
                              bop.startGame(2);
                         holdGame = 0;
                   System.out.println("ButtonClick");
                   c.removeAll();
                   //c.setLayout(new BoxLayout(c, BoxLayout.PAGE_AXIS));
                   tp.setMaximumSize(new Dimension(400, 20));
                   tp.setText("Score: " + countScore + "     Balls Left: 3");
                 tp.setEditable(false);
                 ta.setMaximumSize(new Dimension(400, 20));
                 ta.setEditable(false);
                 c.add(ta);
                      lscore.setMaximumSize(new Dimension(400, 20));
                   lscore.setText("test");
                   c.add(lscore);
                   c.add(tp);
                   c.add(bop);
                   c.validate();
                   c.repaint();
                   if(bop.getStartGame()==0){
                        bop.startGame(1);
                        ball.setThreadRun(1);
                        System.out.println("BOP START GAME 1");
                   else{
                        bop.startGame(2);
                        ball.setThreadRun(1);
                        System.out.println("BOP START GAME 2");
              instructions.addActionListener(new  ActionListener(){
                    public void actionPerformed(ActionEvent ae){
                   System.out.println("ButtonClick");
                   c.removeAll();
                   c.setLayout(new BoxLayout(c, BoxLayout.PAGE_AXIS));
                   JLabel title = new JLabel("How To Play");
                   title.setForeground(Color.red);
                   title.setFont(new Font("Arial", Font.BOLD, 40));
                   title.setMinimumSize(new Dimension(500,500));
                   JTextArea instructions = new JTextArea(
                             "Use the mouse to move the paddle." + newLine +
                             "Use the paddle to stop the ball from hitting" + newLine + "the bottom." + newLine + newLine +
                             "Click to release the ball." + newLine + "You get 3 balls." + newLine +
                             "The score increments every 10 blocks." + newLine + newLine + "When all the blocks are gone a new set is" +
                             newLine  + "generated and the speed of the ball" + newLine +  "increases." );
                   instructions.setEditable(false);
                   instructions.setForeground(Color.white);
                   instructions.setBackground(Color.black);
                   instructions.setFont(new Font("Arial", Font.BOLD, 18));
                   JPanel row1 = new JPanel();
                   row1.setLayout(new BoxLayout(row1, BoxLayout.LINE_AXIS));
                   row1.setBackground(Color.black);
                   row1.setAlignmentY(SwingConstants.CENTER);
                   row1.add(title);
                   JPanel row2 = new JPanel();
                   row2.setLayout(new BoxLayout(row2, BoxLayout.LINE_AXIS));
                   row2.setBackground(Color.black);
                   row2.setAlignmentY(SwingConstants.CENTER);
                   row2.add(instructions);
                   JPanel row3 = new JPanel();
                   row3.setLayout(new BoxLayout(row3, BoxLayout.LINE_AXIS));
                   row3.setBackground(Color.black);
                   row3.setAlignmentY(SwingConstants.CENTER);
                   row3.add(instructions);
                   exitInstructions.addActionListener(new  ActionListener(){
                         public void actionPerformed(ActionEvent ae){
                        c.removeAll();
                        addStartMenu();
                        if(bop.getStartGame() == 0)
                             checkGame = 0;
                      ball.reset();
                        c.validate();
                        c.repaint();
                   JPanel row4 = new JPanel();
                   row4.setLayout(new BoxLayout(row4, BoxLayout.LINE_AXIS));
                   row4.setBackground(Color.black);
                   row4.setAlignmentY(SwingConstants.CENTER);
                   row4.add(exitInstructions);
                   c.add(row1);
                   c.add(row2);
                   c.add(row3);
                   c.add(row4);
                   c.validate();
                   c.repaint();
              highScores.addActionListener(new  ActionListener(){
                    public void actionPerformed(ActionEvent ae){
              addHighScores();
              JLabel title = new JLabel("BreakOUT!");
              title.setForeground(Color.green);
              title.setFont(new Font("Arial", Font.BOLD, 70));
              startMenu.add(title);
              startMenu.add(newGame);
              row1.add(title);
              row1.setBackground(Color.black);
              row1.setAlignmentY(SwingConstants.CENTER);
              JPanel row2 = new JPanel();
              row2.setLayout(new BoxLayout(row2, BoxLayout.LINE_AXIS));
              row2.add(newGame);
              row2.setBackground(Color.black);
              row2.setAlignmentY(SwingConstants.CENTER);
              JPanel row3 = new JPanel();
              row3.setLayout(new BoxLayout(row3, BoxLayout.LINE_AXIS));
              row3.add(instructions);
              row3.setBackground(Color.black);
              row3.setAlignmentY(SwingConstants.CENTER);
              JPanel row4 = new JPanel();
              row4.setLayout(new BoxLayout(row4, BoxLayout.LINE_AXIS));
              row4.add(highScores);
              row4.setBackground(Color.black);
              row4.setAlignmentY(SwingConstants.CENTER);
              c.add(row1);
              c.add(Box.createRigidArea(new Dimension(0,5)));
              c.add(row2);
              c.add(Box.createRigidArea(new Dimension(0,5)));
              c.add(row3);
              c.add(Box.createRigidArea(new Dimension(0,5)));
              c.add(row4);
         public void addHighScores(){ //TODO addHighScores
              c.removeAll();
              //c.setLayout(new BoxLayout(c, BoxLayout.PAGE_AXIS));
              System.out.println("SCOREEE" + ball.getScore());
              finalScore.setFont(new Font("Arial", Font.BOLD, 20));
              finalScore.setText("Final Score: " + Integer.toString(score));
              finalScore.setForeground(Color.green);
              for(int i = 0; i < row.length; i++){
                   row[i] = new JPanel();
              //     row.setLayout(new BoxLayout(row[i], BoxLayout.LINE_AXIS));
                   row[i].setBackground(Color.black);
              //     row[i].add(Box.createHorizontalGlue());
                   row[i].setAlignmentY(SwingConstants.CENTER);
              //FileLoad fl = new FileLoad();
              //System.out.println(fl.loadFile());
              FileLoad fl = new FileLoad();
              fl.loadFile();
              InetAddress addr;
              try {
                   addr = java.net.InetAddress.getLocalHost();
                   nameOfHS = addr.getHostName();
              } catch (UnknownHostException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              boolean highScoreCheck = true;
              for(int x = 0; x < lineRead.length; x++){
                   if(x > 0){
                        StringTokenizer st = new StringTokenizer(lineRead[x]);
                        //lineRead[x] = getNumbers(lineRead[x]).replaceAll(" ", "");
                        lineRead[x] = st.nextToken();
                        int tempScore = Integer.parseInt(lineRead[x]);
                        if((score >= tempScore) && highScoreCheck){
                             System.out.println("Higher");
                             lineRead[x] = (Integer.toString(score) + " " + nameOfHS);
                             highScoreCheck = false;
                        } else {
                             lineRead[x] = (lineRead[x] + " " + st.nextToken());
                   JLabel scores = new JLabel(lineRead[x]);
                   scores.setForeground(Color.white);
                   scores.setFont(new Font("Arial", Font.BOLD, 20));
                   FileSave fs = new FileSave();
                   fs.saveFile();
                   row[x].add(scores);
                   c.add(row[x]);
              exitBTN.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent ae){
                   c.removeAll();
                   addStartMenu();
                   c.validate();
                   c.repaint();
              row[11].add(finalScore);
              row[12].add(exitBTN);
              c.add(row[11]);
              c.add(row[12]);
              c.validate();
              c.repaint();
         public void setBallPos(int x, int y){
              ballX = x;
              ballY = y;
         public void setPadPos(int x, int y){
              padX = x;
              padY = y;
         public int getPadX(){
              int x = padX;
              return x;
         public void setScore(int x){
              score = x;
         public class FileLoad {
              public String [] loadFile(){
              File loadFile = new File("HighScores.txt");
              System.out.println("FILE Load");
              if(loadFile.exists()){
                        System.out.println("FILE HERE");
                   try {
                   //FileReader input = new FileReader(AddressBook.class.getResource("AddressBook.txt").getPath().replaceAll("%20", " "));
                        FileReader input = new FileReader("HighScores.txt");
                        BufferedReader loadedFile = new BufferedReader(input);
                        while(true){
                             if(!loadedFile.ready()) break;
                             for(int x = 0; x < lineRead.length; x++)
                                  lineRead[x] = loadedFile.readLine();
                   } catch (Exception e){}
              }else {
                   FileSave fs = new FileSave();
                   fs.createNewFile();
                   System.out.println("CREATE");
                   try {
                        FileReader input = new FileReader("HighScores.txt");
                        BufferedReader loadedFile = new BufferedReader(input);
                             for(int x = 0; x < lineRead.length; x++)
                                  lineRead[x] = loadedFile.readLine();
                   } catch (Exception e){}
              return lineRead;
              public String [] getLine(){
                   return lineRead;
         }//class FileLoad
         public class FileSave{
              public void saveFile(){
              try{
              FileWriter output = new FileWriter("HighScores.txt");
              BufferedWriter saveFile = new BufferedWriter(output);
              for(int x = 0; x < lineRead.length; x++){
                   saveFile.write(lineRead[x]);
                   saveFile.newLine();
              saveFile.close();
              }catch(Exception e){
              public void createNewFile(){
                   System.out.println("CREATE NEW");
                   try{
                   FileWriter output = new FileWriter("HighScores.txt");
                   BufferedWriter saveFile = new BufferedWriter(output);
                   saveFile.write("High Scores");
                   saveFile.newLine();
                   int y = 10000;
                   for(int x = 0; x < lineRead.length; x++){
                        saveFile.write(Integer.toString(y) + " UserName");
                        saveFile.newLine();
                        y = y - 1000;
                   saveFile.close();
                   }catch(Exception e){
         public void setCheckGame(int x){
              checkGame = x;
         public void setHoldGame(int x){
              holdGame = x;
         public int getHoldGame(){
              return holdGame;
    } // end BreakOutGUi
    package cosc175.Sessa.Final;
    import javax.swing.*;
    import java.awt.*;
    public class Ball extends JPanel implements Runnable {
         private static final long serialVersionUID = -8053071209498647015L;
    BreakOutGUI gui;
    BreakOutPaint bop;
    int ballX, ballDX;
    int ballY, ballDY;
    int padX;
    int speed = 11;
    int ballsLeft = 3;
    int threadRun = 0;
    int lost = 0;
    int score = 0;
    int sleep = 40;
    int levelCount = 0;
    int holdGame = 0;
    int deleteCount;
    Thread t = new Thread(this);
         public Ball(BreakOutGUI gui2, BreakOutPaint bop2){
              gui = gui2;
              bop = bop2;
              ballX = 10;
              ballY = 500;
              ballDX = speed;
              ballDY = speed;
         public void setPositionVelocity(int x, int y, int dx, int dy) {
              ballX = x;
              ballY = y;
              ballDX = dx;
              ballDY = dy;
         public void run(){
              while(true){
                   if(threadRun == 1){
                   gui.setCheckGame(1);
                   //System.out.println("true");
                   //System.out.println("TR: " +threadRun);
                   //System.out.println("Ball Left: "+ ballsLeft);
                   if((threadRun == 1) && (ballsLeft != 0)){
                   //     System.out.println("run");
                   ballX = ballX + ballDX;
                   ballY = ballY + ballDY;
                   try{
                        Thread.sleep(sleep);
                   } catch (Exception e){}
              //System.out.println(ballX);
              if(ballX <= 1 || ballX >= 380){
                   ballDX = -ballDX;
              padX = bop.getPadX();
              //System.out.println("padx " + padX);
              if((ballY >= 425) && (ballX <= (padX +80) && (ballX >= padX))){
                        ballDY = -ballDY;
                   if(((ballX >= (padX)) && (ballX <= (padX +10))))
                        ballDX = -(10);
                   else if(ballDX > 0 && ((ballX >= (padX +11)) && (ballX <= (padX +20))))
                        ballDX = -(7);
                   else if(((ballX >= (padX +21)) && (ballX <= (padX +30))))
                        ballDX = -(4);
                   else if(((ballX >= (padX +31)) && (ballX <= (padX +40))))
                        ballDX = -1;
                   // Seperator
                   if(((ballX >= (padX+41)) && (ballX <= (padX +50))))
                        ballDX = 1;
                   else if(((ballX >= (padX+51)) && (ballX <= (padX +60))))
                        ballDX = 4;
                   else if(((ballX >= (padX+61)) && (ballX <= (padX +70))))
                        ballDX = 7;
                   else if(((ballX >= (padX+71)) && (ballX <= (padX +80))))
                        ballDX = 10;
              //System.out.println("Ball DX " + ballDX);
         //     bop.setBallPos(ballX, ballY);
         if(ballDY > 0){
              if((ballY >= 35) && (ballY <= 105)){
                   int blockX =(int)Math.floor(ballX / 38);
                   int blockY = (int)((ballY - (35)) / 15);
                   if(blockX == 10)
                        blockX = 9;
                   System.out.println("blockx " + blockX + " y " + blockY);
                   System.out.println("ballx " + ballX + " y " + ballY);
                   if(bop.b.blockCount[blockX][blockY] != 0){
                        ballDY = -ballDY;
                        bop.b.deleteBlock(blockX, blockY);
                        deleteCount++;
                        System.out.println("Ball X " + ballX + " Ball y: " + ballY);
                        if(deleteCount <10)
                             updateScore(100);
                        else if((deleteCount >= 10) && (deleteCount < 20))
                             updateScore(300);
                        else if((deleteCount >= 20) && (deleteCount < 30))
                             updateScore(500);
                        else if((deleteCount >= 31) && (deleteCount < 40))
                             updateScore(700);
                        else if(deleteCount >= 41)
                             updateScore(1000);
              }else if((ballY >= 45) && (ballY <= 116)){
                   //System.out.println("down");
                   int blockX =(int)Math.floor(ballX / 38);
                   int blockY = (int)Math.floor((ballY - (45)) / 16);
                   System.out.println("blockx " + blockX + " y " + blockY);
                   if(blockX == 10)
                        blockX = 9;
                   if(bop.b.blockCount[blockX][blockY] != 0){
                        ballDY = -ballDY;
                        bop.b.deleteBlock(blockX, blockY);
                        deleteCount++;
                        System.out.println("Ball X " + ballX + " Ball y: " + ballY);
                        if(deleteCount <10)
                             updateScore(100);
                        else if((deleteCount >= 10) && (deleteCount < 20))
                             updateScore(300);
                        else if((deleteCount >= 20) && (deleteCount < 30))
                             updateScore(500);
                        else if((deleteCount >= 31) && (deleteCount < 40))
                             updateScore(700);
                        else if(deleteCount >= 41)
                             updateScore(1000);
              } //else if
              if(ballY < 15) {
                        ballDY = -ballDY;
              } else if (ballY > 480) {
                   ballDY = 0;
                   ballDX = 0;
                   ballsLeft--;
                   deleteBall(ballsLeft);
                   threadRun = 0;
              bop.setBallPos(ballX, ballY);
              if(ballsLeft == 0){
                   threadRun = 0;
                   System.out.println("YOU LOSE");
                   gui.tp.setText("You Lose! Final Score: " + Integer.toString(score));
                   gui.setScore(score);
                   //bop.startGame(-1);
                   gui.addHighScores();
                   this.reset();
                   JLabel finalScore = new JLabel("Final Score: " + Integer.toString(score));
                   finalScore.setForeground(Color.white);
                   gui.add(finalScore);
                   revalidate();
                   gui.c.repaint();
                   if(deleteCount == 50){
                        for(int x = 0; x<10; x++)
                             for(int y = 0; y < 5; y++)
                                  bop.b.blockCount[x][y] = 1;
                        if(sleep >= 20)
                             sleep-= 5;
                        //if((levelCount / 2 >= 1) && (levelCount % 2 == 0))
                        //     speed+=1;
                        levelCount++;
                        deleteCount = 0;
                        this.setPositionVelocity((bop.getPadX() + 40), 420, 4, this.getSpeed());
              }// While(true)
         } // public void run()
         public void setDeltaXY(int x, int y){
              ballDX = x;
              ballDY = y;
         public void updateScore(int x){
              score = score + x;
              System.out.println(score);
                   gui.tp.setText("Score: " + Integer.toString(score) + " Balls Left: " + Integer.toString(ballsLeft));
         public void deleteBall(int x){
              int tempBalls = x;
                   gui.tp.setText("Score: " + Integer.toString(score) + " Balls Left: " + Integer.toString(tempBalls));
         public int getThreadRun(){
              return threadRun;
         public void setThreadRun(int x){
              threadRun = x;
         public int getDeltaX(){
              return ballDX;
         public int getDeltaY(){
              return ballDY;
         public int getScore(){
              return score;
         public void setBallsLeft(int x){
              ballsLeft = x;
         public int getSpeed(){
              return speed;
         public void resetScore(){
              score = 0;
         public void reset(){
              System.out.println("RESET GAME");
              score = 0;
              ballsLeft = 3;
              deleteCount = 0;
              threadRun = 0;
              gui.setHoldGame(1);
              for(int x = 0; x<10; x++)
                   for(int y = 0; y < 5; y++)
                        bop.b.blockCount[x][y] = 1;
    package cosc175.Sessa.Final;
    import java.awt.Color;
    import java.awt.*;
    public class Blocks {
         int deleteCount = 0;
         int blockCount[][] = new int[10][5];
         BreakOutGUI gui;
         BreakOutPaint bop;
         public Blocks(BreakOutPaint bop2){
              bop = bop2;
              for(int x = 0; x<10; x++)
                   for(int y = 0; y < 5; y++)
                        blockCount[x][y] = 1;
    public void makeBlocks(){
              for(int x = 0; x<10; x++)
                   for(int y = 0; y < 5; y++){
                        if(blockCount[x][y] != 0){
                             bop.g.setColor(Color.green);
                             int z = 45 + y * 15;
                             //System.out.println("z: " + z);
                             bop.g.fillRect(10 + x * 38, z, 30, 10);
                        }else{
                             bop.g.setColor(Color.black);
                             int z = 45 + y * 15;
                             bop.g.fillRect(10 + x * 38, z, 30, 10);
         public void deleteBlock(int x, int y){
              blockCount[x][y] = 0;
              System.out.println("DELETE: " + x + " " + y);
              deleteCount++;
         public int getDeleteCount(){
              return deleteCount;
    package cosc175.Sessa.Final;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import javax.swing.*;
    public class BreakOutPaint extends JPanel {
         private static final long serialVersionUID = -4400301164637088912L;
    int startNewGame = 0;
    int ballX = 10;
    int ballY = 800;
    int countScore = 0;
    int ballCheck = 0;
    Blocks b;
    int padX = 160;
    int padY = 440;
    Graphics g;
    JTextPane tp = new JTextPane();
         public BreakOutPaint(){
              b = new Blocks(this);
         public void startGame(int x){
              startNewGame = x;
              System.out.println("SNG" + startNewGame);
         public void paintComponent(Graphics g2){
              Graphics2D aag = (Graphics2D)g2;
              g = g2;
              //aag.setBackground(Color.black);
              if(startNewGame > 0){
         //          System.out.println("paiting" + " ballx " + ballX + " bally " + ballY);
                   //aag.setRenderingHint(RenderingHints.KEY_ANTIALIASING, // Anti-alias!
                   // RenderingHints.VALUE_ANTIALIAS_ON);
              g.setColor(Color.black);
              g.fillRect(0, 0, 500, 600);
              g.setColor(Color.blue);
              //g.fillRect(padX, padY, 80, 15);
              g.fillRoundRect(padX, padY, 80, 15, 80, 15);
              b.makeBlocks();
              g.setColor(Color.white);
              g.fillOval(ballX, ballY, 12, 12);
         public void setBallPos(int x, int y){
              repaint();
              ballX = x;
              ballY = y;
              this.validate();
              repaint();
         public int getBallX(){
              return ballX;
         public int getBallY(){
              return ballY;
         public void setPadPos(int x, int y){
              padX = x;
              padY = y;
              this.repaint();
         public int getPadX(){
              int x = padX;
              this.repaint();
              return x;
         public int getStartGame(){
              return startNewGame;
         public void setBallCheck(int x){
              ballCheck = x;
         public int getBallCheck(){
              return ballCheck;
    package cosc175.Sessa.Final;
    import java.awt.event.*;
    public class Pad implements MouseListener, MouseMotionListener, KeyListener {
         BreakOutGUI gui;
         BreakOutPaint bop;
         Ball ball = new Ball(gui, bop);
         int ballCheck = 0;
         int threadRunning = 0;
         int tempDX, tempDY, tempPadX;
         int speed = 15;
    //     Thread t = new Thread(new Ball(gui));
         public Pad(BreakOutPaint bop2, BreakOutGUI gui2){
              bop = bop2;
              gui = gui2;
              gui.f.addMouseMotionListener(this);     
              gui.f.addMouseListener(this);
              gui.f.setFocusable(true);
              gui.f.addKeyListener(this);
         //     ball = b;
         public void mouseMoved (MouseEvent e) {
                   int x = e.getX();
                   int y = e.getY();
                   //System.out.println("x " + x + " y " + y);
                   if(x<400)
                        bop.setPadPos(x-40, bop.padY);
                   //System.out.println("MouseMoved");
              public void mouseReleased (MouseEvent e) {
                   System.out.println("RESET");
                   if(gui.getHoldGame() == 0){
                   if(bop.getStartGame() == 1 && bop.getBallCheck() == 0 && ball.getThreadRun() == 0) {
                        System.out.println("GAME START");
                        new Thread( ball = new Ball(gui, bop)).start();
                        bop.setBallCheck(1);
                        threadRunning = 1;
                   ball.setPositionVelocity((bop.getPadX() + 40), 420, 4, ball.getSpeed());
                   else if (ball.getThreadRun() == 0 && bop.getStartGame() == 1){
                        ball.setPositionVelocity((bop.getPadX() + 40), 420, 4, ball.getSpeed());
                        ball.setThreadRun(1);
                        threadRunning = 1;
                        System.out.println("RESET1");
                   else if(bop.getStartGame() == 2 && ball.getThreadRun() == 0){
                        bop.setBallCheck(1);
                        bop.startGame(1);
                        ball.resetScore();
                        ball.setBallsLeft(3);
                        // bop.setBallPos(bop.getPadX() + 40, 420);
                   ball.setPositionVelocity((bop.getPadX() + 40), 420, 4, ball.getSpeed());
                        ball.setThreadRun(1);
                        // bop.setBallPos(100, 100);
                        threadRunning = 1;
                        System.out.println("RESET2");
              public void keyReleased (KeyEvent e){
                   System.out.println(e.getKeyChar());
                   if((threadRunning == 1) && (e.getKeyChar() == 'p') || (e.getKeyChar() == 'P')){
                        System.out.println("reach here");
                        tempDX = ball.getDeltaX();
                        tempDY = ball.getDeltaY();
                   //     tempPadX = bop.getPadX();
                   //     bop.setPadPos(100, bop.padY);
                        ball.setDeltaXY(0, 0);
                        gui.tp.setText("PAUSED: PRESS R TO RESUME");
                   if((threadRunning == 1) && (e.getKeyChar() == 'r') || (e.getKeyChar() == 'r')){
                        System.out.println("reach here");
                        ball.setDeltaXY(tempDX, tempDY);
                   //     bop.setPadPos(bop.getPadX(), bop.padY);
                        gui.tp.setText("Resumed");
              public void setSpeed(int x){
                   speed = speed + x;
              public void keyPressed (KeyEvent e) { }
              public void keyTyped (KeyEvent e) { }
              public void mouseDragged (MouseEvent e) {}
              public void mouseEntered (MouseEvent e) {}
              public void mouseExited (MouseEvent e) {}
              public void mouseClicked (MouseEvent e) {}
              public void mousePressed (MouseEvent e) {}
    Edited by: gazotem on Dec 8, 2007 4:34 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Don't post a long production code. Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html
    It seems that your problem is cause by difference of Java versions.

  • Skype History Across Across Multiple Platforms

    I need to get acess to my entire Skype history from both of my platforms: Computer and iPhone. My iPhone one just displays my iPhone-based calls, and my computer displays the computer ones.
    I need to be able to print this call log for government purposes (visa). I have used software to extract call logs from my computer, but I can't locate one for my iPhone or one that combines the two.
    Can anyone please help me? Thank you.
    Josh

    The only centralized Call history for all telephone calls made by the same Skype name from any computer/device is located in your Account page. Please click the "Account" link at the top of this page and logon using the Skype name in question. Then click on "View Call History, you can also download a .csv formatted file and call history from your account page is only stored for a 6 month period. Call History there is diplayed month by month and the call history .csv files are month by month as well.
    Note, there is no centralized history for Skype To Skype calls, or inbound calls, that data is stored only locally on the computer/device where those types of calls were made or received.
    About Me You can also use a IP Camera as your camera for Skype video Example Instructions

  • How have folks resolved synch across multiple platforms?

    I have a PC for work (Outlook), an MacBook Pro for personal use, and an iPhone.  I am trying to find a way to synch calendars on all devices.  Any suggestions??

    Use a web based service like from google
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • What's the best way to upgrade FF 3.6.16 to FF 4 and begin using Sync across multiple platforms?

    I love the look and features of FF 4. I recently bought a new laptop for the road and would like to have my FF environment on it --without recreating all of my bookmarks and passwords on it; so it looks like FF4 is the way to go.
    Seems like there are two ways to do this...
    1) Download FF4 to my desktop (curr. running 3.6.16) and hope that it keeps all my personal browsing info as past FF upgrades have, then add-on Sync, create an account, which I can then use on my new laptop w/o having to re-save a lot of bookmarks and organize a bunch of folders.
    -or-
    2) Start using Sync ( or Xmarks? in 3.6.16) on my desktop, create the account and then access that browsing environment on my laptop (running FF4) then upgrade my desktop to FF4.
    Any recommendation as to which works better, or is less painful?
    Anything to watch out for? or steps I've missed?

    When you upgrade it will use your existing user data including bookmarks, passwords, cookies and browsing history.
    I have been using Firefox Sync since it was in an early development stage about 2 years ago. I have gone through a few upgrades to Firefox since then with no problems during the upgrades. I recommend going to Firefox 4 first because Firefox Sync is built into it so there will be no need to install the add-on.
    If required you can downgrade to Firefox 3.6.16

  • Using OOP across multiple platforms – how to manage platform-specific functions

    I am writing OOP software that acquires data from many cRIO chassis and transmits that information to a remote machine. For testing purposes, we want some of the cRIO chassis to be “Real” and the rest “Simulated”. My project consists of a Parent cRIO chassis class, along with two child classes (Real cRIO and Simulated cRIO). There is also a Parent cRIO method, along with numerous subVI parent and child methods (all with Dynamic object inputs/outputs).  Each instance of a cRIO object is created by taking the Parent cRIO method and wiring into it either a Real or a Simulated class. Real instances use child methods that call RT functions, and Simulated instances use functionally-equivalent child methods that avoid RT function calls.
    The software is fine as long as the real and simulation instances are directed to RT targets. However, I would like to direct the simulation instances to a Windows target; when I do so, I get complaints about RT functions being called on the Windows target. Is there a way to configure my Project so that the compiler will allow my Simulation instances to run on a Windows machine?
    Thank you for any assistance you can offer.

    Just throwing this out there, not sure, but have you tried "disable autodeploy variables" on the crio units within the project?  
     Also, another thing you could try is wrapping your cRIO functions in a conditional structure and check for a targettype== RT.   I'm not sure if this helps but two thoughts i had.
    G/L  

  • How do you have a single test case run on multiple platforms in both a Deploy/Test build and via MTM?

    I am wanting to have a scheduled nightly build execute my testcases for multiple platforms/configurations.  I have multiple VMs running in these environments but the method Microsoft provided
    (without digging into customizing the build template) doesn't provide any functionality for this.  This is a basic use case for automation that I can't believe they would miss.  Has anyone run into this and found a solution.  Is it just that
    you have to completely customize the template?
    For a more complete use case...
    I have 4 customers that have different configurations and different OS platforms on top of a generic configuration.  I want the build/deploy/test build to automatically run my 152 test
    cases to at minimum those 5 environments.  I want this to run every morning at 1am and the tests should in the different environments in parallel (ie all of customer 1 tests run at the same time as customer 2 tests...). I also don't want to have to create
    152 * 5 test cases since that will bloat things and cause more management/maintenance headaches.

    I am wanting to have a scheduled nightly build execute my testcases for multiple platforms/configurations.  I have multiple VMs running in these environments but the method Microsoft provided
    (without digging into customizing the build template) doesn't provide any functionality for this.  This is a basic use case for automation that I can't believe they would miss.  Has anyone run into this and found a solution.  Is it just that
    you have to completely customize the template?
    For a more complete use case...
    I have 4 customers that have different configurations and different OS platforms on top of a generic configuration.  I want the build/deploy/test build to automatically run my 152 test
    cases to at minimum those 5 environments.  I want this to run every morning at 1am and the tests should in the different environments in parallel (ie all of customer 1 tests run at the same time as customer 2 tests...). I also don't want to have to create
    152 * 5 test cases since that will bloat things and cause more management/maintenance headaches.

  • Cluster Apex MS's across multiple nodes for load balancing?

    Can Cluster Apex MS's across multiple nodes for load balancing? If Yes/No, any supportive doc's will be much appreciated.
    Here is what I did ..........
    I tried multiple MS's on different nodes for Apex Domain (clustered)
    Deployed apex.war, i.war with targets pointing to cluster.
    Apex listener techstack is shared filesystem $HOME/apex, where apex-config.xml and bdb are available
    Anyone of the MS's whichever started up first is locking up bdb and 500 server shows up when internal workspace is being launched with host specific url, where as it works fine for the host which actually locked up bdb (first MS that was started)
    2nd MS shows errors as below in log files ..
    Caused By: com.sleepycat.je.EnvironmentLockedException: (JE 4.0.103)$HOME/apex/bdb The environment cannot be locked for single writer access. ENV_LOCKED: The je.lck file could not be locked. Environment is invalid and must be closed.
    Its expected behavior until here .....
    ++++ I tried something to get it working ++++
    Whilst both MS's are up and running, delete $HOME/apex/bdb but let apex-config,xml be as it is...now the internal workspace urls for both hosts work fine. I logged into host specific urls and navigated, created/edited users.,etc and it is all looking good but it did not create new bdb directory under $HOME/apex ...!!
    Having said its working fine, the same issue repeats after the MS's bounce. So I did put a command line to delete bdb dir once the MS comes up to avoid the issue but really not sure if this is the right way at all?
    Geek's ...awaiting your advice!!

    Hey there,
    I managed to fulfill my requirement..
    If its a cluster on same machine or across machines, this should work
    1. Login to machine, cd $DOMAIN_HOME
    2. mkdir -p Apex_lsn_config/AdminServer Apex_lsn_config/<MS1> Apex_lsn_config/<MS2> # MS1 and MS2 are the Managed Server names as appropriate
    #If you are planning for cluster spawning MS's across machines, make sure you create the dir's on step 2 for each machine respectively. (in my case $DOMAIN_HOME is not shared)
    3. Copy apex-config.xml from the /tmp/apex or whatever location you have it currently to Apex_lsn_config/<MS1> Apex_lsn_config/<MS2>
    4. cd $DOMAIN_HOME/bin; cp -p SetDomainEnv.sh SetDomainEnv.sh.orig #Backup the file
    5. Append -Djava.io.tmpdir in SetDomainEnv.sh as below for JAVA_OPTIONS # Do it on both machine if you are not sharing DOMAIN_HOME and planning cluster across machines
    -Djava.io.tmpdir=$DOMAIN_HOME/APEX_CONFIG/${SERVER_NAME}
    Hint: Search for "iterativeDev" and append the same line with -Djava.jo.tmpdir
    6. Modify "java.io.tmpdir" from the web.xml file of apex.war as below and re-deploy the war
    <context-param>
         <param-name>config.dir</param-name>
         <param-value>${java.io.tmpdir}</param-value>
    </context-param>
    7. Bounce Weblogic Admin and Manged Servers. Make sure to tail the Managed Server log to see apex-config.xml is picked from the new location.
    8. Brew a Coffee for yourself :)
    - You find the instructions on creating a cluster from weblogic documentation, the steps mentioned above are only to overcome the bdb locking issue whilst creating a cluster.
    Did it help?
    Edited by: Oratime on Mar 25, 2013 2:44 AM

  • Syncing model sources across multiple WARs

    One of the problems we're hitting in our development is keeping model classes synced across a multi-WAR project. For example, the model class for, say, a User object was changed in WAR B, but that developer (an intern) did not publish those changes to WARs A and C. The end result was that a few of our web service calls started failing on the unchanged WARs, while others worked fine.
    I started looking into EJB3, intrigued by the @Remote and @Local setup, but those are related to the session beans themselves. I was hoping that object models could be referenced by interface across multiple WAR distributions as well, though I haven't dug up anything specific on this yet.
    Is there any advice on this forum for keeping model classes in sync across a multiple-WAR project (aside from tighter repository control and swift kicks to the butt)?

    Wraithe wrote:
    Quoting myself: +"The end result was that a few of our web service calls started failing on the unchanged WARs"+
    My original question pertaining to ensuring that the source code for the end user model classes remained consistent. You can't if the interface contains Java classes that are changed. You immediately have to deploy updated JAR files with the new code to all the clients that need it.
    The JAR idea is applicable, though not ideal, and I was hoping there was some other suggestion as to how to handle client-side objects.There is: XML messaging in the service interface instead of Java classes.
    %

  • Custom template available across multiple site collections

    I have created a custom site template which I need to be available across multiple site collections. Is there a global area where I can put the .wsp file so that I can use it within any site collection.
    I also have a custom document library which I need to be available from with the site made from the custom site template mentioned above - Is there a global area where I can put the .stp file so that I can use it within any site within any site collection.
    thanks

    This will really depend how the template has been packaged.  If it's a content type, than editing this and making sure that the "update content type" radio is selected will do the trick. Can you ask someone who's made one to show you how they generate
    the template. If it's within the New --> XXX Document, than you're in luck
    If they're just deployed as normal files within a library, you'll have a much harder time.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • DSN Deployment across JRun4 (J2EE) Config

      Howdy,
      I'm trying to figure out the most efficient way to deploy Datasources across multiple JRun4 instances of CF8.  Should I keep pursuing the full "ColdFusion8 as an application" deployment method, or is there a smaller, more modular way to address just DSN updates?  The reason being, I would be using similar DSNs across multiple physical servers, and it would save a lot of manpower to update it once and then auto-deploy across all servers.

    It is possible to get just the DSN information using the "Deployment and Archive" feature to create a "CAR" ColdFusion Archive file that can be deployed on other servers.
    It is possible to get just the DSN information by copying the relevant *neo.xml files from one server to another server and restarting the second server.
    One of those options may be of use to you.
    Ian

Maybe you are looking for