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

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 identify a user across multiple pages

    Hi,
    I'm doing a homebanking and I would like to know how to identify a user across multiple pages.
    I have already take a look at HTTPSESSION, but I didn't understand.
    Can someone help me.
    I'm send the servlet Logon.
    import java.io.*;
    import java.sql.*;
    import java.util.Date;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Cons_logon extends HttpServlet
         private Connection conexao = null;
         Login1 login1;
         public void init (ServletConfig cfg) throws ServletException
              super.init(cfg);
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   conexao = DriverManager.getConnection("jdbc:odbc:bank");
              catch (Exception e)
                   System.out.println(e.getMessage());
         public void doPost (HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
              String Suser, Spassword;
         PrintWriter out;
              res.setContentType("text/html");
    out = res.getWriter();
    String opcao = req.getParameter("log");
    Thanks

    I would recommend using the authentication mechanism that's guaranteed by the servlet spec. If you do that, you can just call
    request.getRemoteUser()
    to get the user name across multiple pages.
    If you want to use your own login scheme, you can create a new session object and map it to a user name somewhere in your app. Or you can just put the name of the user on the session. But the preferred way is to use the default authentication scheme defined by the spec.

  • How to share a session across multiple jws?

    Hi!
    I have this problem.
    I'm looking for a way to have shared sessions, available across multiple JWS with WLW 8.1
    I try to get a session with this code:
    WebServiceContext wsContext = WebServiceContext.currentContext(); WebServiceSession session = (WebServiceSession)wsContext.getSession();
    but it throws COntextNotFoundException....
    I added the session descriptor in weblogic.xml to set the param CookiesEnabled to true, because I read that using this code works but requires that the client support cookies to keep the HttpSession object around.
    But it's not works!
    How can I get to HTTP session from a JWS?
    And....it's possible to share a session accross multiple JWS?
    Thanks a lot!

    You may be interested (& probably discouraged at the end) in this discussion http://forum.java.sun.com/thread.jspa?threadID=619170
    cheers,
    ram.

  • Under the iCloud portion of settings on my iPhone, I have always gotten the message "account not verified". The email matches and is in fact the same for my accounts on iCloud and iTunes. Has anyone had this problem, and how have they resolved it?

    Under the iCloud portion of settings on my iPhone, I have always gotten the message "account not verified". The email matches and is in fact the same for my accounts on iCloud and iTunes. Has anyone had this problem, and how have they resolved it?

    Hello megalina23
    You need to verify the email address associated with the Apple ID. Check out the article below on how to do this.
    Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/HE68
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How  to reuse common code across multiple work repositories

    Hi Experts,
    I have a ruqirements from our customer side. we have a one master repository attached with three work repositories(wk1,wk2,2k3). Customer want to place some common code into wk1 workrepository and want to reuse across multiple workrepositories(wk2,wk3).
    Generally we can reuse code in same work repositories like knowmodules and interfaces.
    Is it possible to use across mutiple workrepositories?
    Thanks in Advance
    Siri

    You can't hare the same instance of the code across multiple work repositories. You have to have a seperate instance in each work repository. However you can manage it as if it was shared through ODI's versioning capability i.e. all changes to the common code are only ever made in one work repository i.e. Wk1 and then deployed to the other 2 which is as simple as getting the latest version from the Master repository. You could even set up security in Wk2 and Wk3 to make sure that your developers/users do not have permission to edit the common code in those repositories.

  • How to use a connection across multiple request

    What is the idea of using a connection across multiple requests.

    Please give more details. What connections and what requests
    And are you posting on the right forum? (This sounds more like a Networking/servlet question)

  • 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  

  • Why is photo stream not synching across multiple devices?

    I am using an iPad, iMac, iPhone and MacBook Pro - all with Photo Stream enabled on the same account - yet the photos in my individual photo streams are no identical across all. There are a handful of photos that in the stream that I can find on all of my devices, but at the same time, each device also has a number (sometimes quite a few) that are only on that particular device, despite it appearing on that device's photo stream.  How can I sync them so that they all have the same photos? I thought that was the purpose of photo stream...

    Photostream is streaming, not syncing service. So every device that you have will have photos from the time that photostream was enabled on that device. As long as photostream folder exists in your iphoto, you can force pictures into it. Just move or copy those pictures in photostream folder in iphoto on your Macs. They will get moved into icloud and downloaded to other devices. Remember that photostream is not designed to hold your pictures forever, just 30 days or 1000 pictures. Once 30 days is over it still stays on your computers, but is not in the cloud anymore.

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

  • How to collate same pages across multiple PDF files

    I have multiple reports in PDF that have specific employee data on each page. The employee page order is the same across each PDF (Employee #75 is on page 43 in each file). I would like to combine the first page from each file together, the second, and so on. That way I can provide this data to each employee without them having access to other employee's data. Is there a way to do this in Acrobat Pro?

    Hello try67,
    thank you for your help. I try it in the SDK forum. Anyway I appreciate any hint to solve this task :-)

  • How to change PowerPoint Template across multiple site collections

    I am failry new to SharePoint, and my organization has asked me to research how to change a PowerPoint template that is stored on multiple site collections. There are current PowerPoints based on the template and they wanted to be sure those wouldn't be
    affected, as well. They want a "quick and easy" way to update the template that the divisions in the company use without manually going into each site collection. A co-worker said she hopes to "replace the current...template at the site
    collection and it will modify the available content type when selecting new document."
    Any help on how to handle this would be appreciated.

    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.

  • How to define common segments across multiple SOB's

    We are considering an implementation approach with multiple SOBs for the various entities under the umbrella organization, since each manages itself differently. However, we still need to define a SOB for consolidating the data from the entities. Other than reporting needs, what factors should be considered for determining accounting flexfield segments that are common across the entities, and therefore should be in each SOB? Any other considerations?

    Hi Shelia!
    This is a broad question. The main thing to keep in mind is that each set of books should have a unique balancing segment value defined for it and defined at the set of books level when defining the accounts in your Set of Books form.
    For example, if you have 3 companies that all share the same chart of accounts structure, the Balancing Segment (Company Segment) should be somethig like:
    01 for Company 1
    02 for Company 2
    03 for Company 3
    Then, when you define each company's set of books, make sure you use the corresponding segment value for each.
    So, the Retained Earning Account would be 01-3500----- for Company 1's set of books and Retained Earnings will be 02-3500 for Company 2's set of books.
    If all of you sets of books reside on a single database instance, and they all share the same chart of accounts, you will NOT need to define a separate consolidation set of books. You can create FSG reports to consolidate the data across sets of books on a single instance.
    --Theresa                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to display timed events across multiple days in month view?

    Simple question I suppose, though I don't know if it has an answer. When I put an event spanning multiple days (say, a week long vacation) in iCal, and check the "All Day" box, it shows a nice, accurate, bar going across those days the event I'm entering covers. However, if I give it specific times for the event (e.g. the times of departure and return for said trip), even if those times are a week apart, the event still appears to only cover the starting date when viewed from the month perspective.
    Is there any way I can make the month calendar show all the days during which the event is "happening" so that at a glance I will realize that an entire week is busy?

    Hi,
    You can do it with keyboard shortcuts.
    Select the event. Press Cmd+X. Press Cmd and right or left arrow (depending if it is forward or back in months) until you are in the correct month. Press Cmd+V to pase on the same day in the new month.
    Best wishes
    John M

  • For an iCloud and/or Windstream email account, how can I delete emails across multiple devices, without having to go to each device?

    I have a friend with an iCloud email account and Windstream account on both her iPad and iPhone... She's saying that when she deletes an email from one device, it doesn't delete it from the other automatically... She's using both emails through the "Mail, Contacts and Calendars" settings under the "Settings" menu; not through apps...  I've had her check both of her email account settings to make sure that the settings were consistent... I've never had this issue with Exchange or Gmail, and I don't use the iCloud email account, so I'm a little unfamiliar with what else to look at... Can someone offer some advice, please?
    Thank you for your help!

    IMAP is the mail protocol that allows you to delete a message one place and have it delete everywhere else. iCloud uses IMAP, so it should be working. If the messages never delete, then something may be incorrect in the settings. The easiest thing to do with iCloud is to logout of the account on every device, and then login again. (Another common problem with iCloud email is people often have two Apple IDs, and thus may have two iCloud email accounts. If you get confused about which one you're using, you may think you've deleted email when you actually haven't.)
    If the iCloud messages do ultimately delete across all devices, then it could be that some devices aren't set to "Push" but are instead set to "Fetch" the newest info from the server. Fetch can be set to as long as an hour between check-ins.
    The same holds true for Windstream if she's using an IMAP account there, too. If it's a POP account, then deleting a message one place will never delete it anywhere else—that's the way POP works.

Maybe you are looking for

  • Photos *****. How can I get iPhoto back

    Photos lacks many of the features of iPhoto that I used all the time. How can I get it back?

  • Message-driven bean destination name not found error

    Hi, I am getting this error when I attempt to deploy the Warehouse message-driven bean example/tutorial. I followed the steps in the JMS Queue Simple Sample Application included with the server to set up the queue and queue factory, but I don't think

  • PKCS#11 - eToken Device problem

    Dear All, I have an urgent problem I have Aladdin eToken Pro USB device and I need to generate private key on it, I was able to load the KeyStore using the pkcs#11 dll file and I was able to generate private and public key from the KeyPairGenerator ,

  • Ftp connection failed using iWeb

    i am trying to publish my website using iweb 3.0.4. everytime i test my ftp server i keep getting connection failed. i know for a fact that my username and password, and all related ftp server settings are correct. my webhost is godaddy and have quad

  • How  do you recover an updated os on time machine

    how  do you recover an updated os on time machine? ie: i just restored my imac running snow leopard but i HAD it updated to at least Mountain Lion maybe Mavericks. How do i find that through Time machine restore? i only kinda know what i'm doing..