Anybody who wants to moderate an IO working program - come on do it

It just works -- help to improvr
run it first then try to understand
The project is to be submitted before april 15th - I discovered java around August last year
My programing background only Pascal - 4 years ago
For a novice - I'm really good....in getting results... not in clean programming...sorry
// legend
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ will mean a new file, another file or the end of the file
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ will mean read this instruction
// ok lets go
//^^^^^^^^^ The following code is written in notepad and saved as test.bat
// this file can be saved in jdk/bin as test.bat
//~~~~~~~~~ begin file > test.bat
keytool -delete -alias mykey -keystore "C:\Program Files\JavaSoft\JRE\1.3.1\lib\security/cacerts" -storepass changeit
javac newoscillo13.java
jar cvf myoscillo.jar newoscillo13.class
del c:\windows\.keystore
keytool -genkey -alias mykey -keypass tarachand -dname "cn=test" -storepass tarachand
jarsigner -signedjar hellosigned.jar -storepass tarachand myoscillo.jar mykey
keytool -export -alias mykey -file mykey.cer -storepass tarachand
keytool -import -file mykey.cer -keystore "C:\Program Files\JavaSoft\JRE\1.3.1\lib\security/cacerts" -storepass changeit
del newoscillo13.class
//~~~~~~~~~ end file > test.bat
//^^^^^^^^^ save the following file as datafile.txt in jdk/bin
//~~~~~~~~~ begin file > datafile.txt this file consists of data ranging from 0 to 300
140 162 340 45 300 300 60 200 20 300
100 16 2 45 300 3 50 64 250 220     
100 360 20 390 40 50 25 10 0 294
230 200 309 140 162 310 45 300 300 60 200 20
//~~~~~~~~~ end file > more data must be added I've given u just this few
//^^^^^ Heres the main program. save it as newoscillo13.java in jdk/bin
//~~~~~~~~~~ begin newoscillo13.java
import java.awt.*;
import java.awt.Graphics;
import java.applet.Applet;
import java.util.*;
import java.lang.*;
import java.text.*;
import java.io.*;
public class newoscillo13 extends Applet implements Runnable {
     Thread timer;// thread to produce a delay before repainting
     int delay = 1000;// delay between readings in ms
     boolean initialiser = true;
     String[] nowdate = new String[13];
// defining the oscilloscope coordinates variables
     int screentop = 36;// where the oscillo grid starts
     int screenright = 55; // where the oscillo grid starts
     int screenheight = 400; // size of oscillo
     int screenwidth = 480;// size of oscillo
     int numofcolumns = 12;
     int numofrows = 10;
     int rowheight = screenheight/numofrows;
     int grid = screenwidth/(numofcolumns*5); // grid size
     int numofpoints = 61;
     int[] measuredval = new int[numofpoints +1]; // this array will contain the points to display on the oscillo
     int originx = screenright; // pixel coordinates 5
     int originy = (screentop+screenheight/2);// pixel coordinates 2 + 320/2 = 162
     int xmax = screenright + screenwidth;
     int ymax = screentop + screenheight;
     Color lineColor = Color.white;
     Color gridColor = Color.red;
     Color oscilloBgnd = Color.blue;
     Color fontColor = Color.black;
     Color borderColor = Color.red;
     Color measuredvaldispbgnd = Color.green;
// start programing
     public void init() { }
// starting paint
     public void paint(Graphics g){
     setBackground(Color.white);
     g.setColor(borderColor);
     g.fillRect(screenright-3,screentop-3,screenwidth+6,screenheight+6);
     g.setColor(oscilloBgnd);
     g.fillRect(screenright,screentop,screenwidth,screenheight);
     g.setColor(gridColor);
     g.drawLine(screenright,screentop+screenheight/2,screenright+screenwidth,screentop+screenheight/2);
     g.drawLine(screenright+screenwidth/2,screentop,screenright+screenwidth/2,screentop+screenheight);
     for (int i=screenright; i< screenright+screenwidth+1; i= i+grid*5) {
     g.drawLine(i,screentop,i,screentop+screenheight);}//vertical lines on oscillograph
     for (int i=screenright; i< screenright+screenwidth+1; i= i+grid) {
     g.drawLine(i,screentop+screenheight/2-5,i,screentop+screenheight/2+5);}
     for (int i=screentop; i< screentop+screenheight+1; i= i+screenheight/10) {
     g.drawLine(screenright,i,screenright+screenwidth,i);}// horizon lines on oscillograph
     for (int i=screentop; i< screentop+screenheight+1; i= i+screenheight/50) {
     g.drawLine(screenright+(screenwidth/2)-5,i,screenright+(screenwidth/2)+5,i);}
// reading a text file > datafile.text placed in c:\jdk1.3.1\bin
int [] measuredval = new int[numofpoints +1];     
int measuredvalue;
try {
RandomAccessFile f = new RandomAccessFile ("c:\\jdk1.3.1\\bin\\datafile.txt", "r");
int dataarraysize = 0;
String s;
          while ( (s=f.readLine()) != null )                          {
               StringTokenizer st = new StringTokenizer(s);
                              while (st.hasMoreTokens()) {
                    measuredvalue = Integer.parseInt(st.nextToken());
                    if (dataarraysize < numofpoints +1) measuredval[dataarraysize] = measuredvalue;
                    if (dataarraysize>numofpoints) {
                    measuredval[numofpoints] = measuredvalue;
                    for (int k =1; k <= (numofpoints -1); k++) measuredval[k] = measuredval[k+1];
                    dataarraysize++;
                         }     // end while
                         }     // end try
catch (Exception e) {System.out.println("Execption in constructor readertext13: "+e); } // end catch
               for (int a = 0;a<=(numofpoints -1);a++){
               if (measuredval[a] < 0) measuredval[a] = 0;
               if (measuredval[a] > screenheight) measuredval[a] = screenheight;
               //System.out.println(""+measuredval[a]);
// display date and temperature horizontally below the oscilloscope
     SimpleDateFormat now1 = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
     Date now = new Date();
     String nowstring = now1.format(now);
     g.setColor(measuredvaldispbgnd);
     g.fillRect(screenright - 4,ymax+5+40,screenwidth+8,20);
     int val = measuredval[numofpoints-1];
     g.setColor(fontColor);
     g.drawString(""+nowstring +" Temperature = "+val+"�C", screenright+10,ymax + 20+40);
// x axis labelling - temporary
SimpleDateFormat axisdate = new SimpleDateFormat("mm:ss");
Date noww = new Date();
while (initialiser) {
for (int ii = 0; ii<13;ii++) nowdate[ii] = axisdate.format(noww);
initialiser = false;}
//---------------888888888888888
// labelling x axis - time for each column
for (int nw = 0;nw<12;nw++){
nowdate[nw] = nowdate[nw + 1]; }
nowdate[12] = axisdate.format(now);
int wn = 0;
while (wn <12) {
g.drawString(nowdate[wn], screenright wn*40 - 17 ,screentopscreenheight+20);
g.drawString(nowdate[wn+1], screenright +(wn+1)*40-17 ,screentop+screenheight+20);
wn = wn +2;}
g.drawString(nowdate[12], screenright + numofcolumns*40-17 ,screentop+screenheight+20);
// label y axis
     //labeling vertical axis
     g.setColor(fontColor);
     for (int n = 0;n<11;n++) {
     int gridlabel = (screenheight - n*40);
     g.drawString(""+gridlabel+"�C", screenright - 45,screentop+screenheight*n/10 +4);
// title label
     g.setColor(measuredvaldispbgnd);
     g.fillRect(screenright-3,5,screenwidth+5,20);
     g.setColor(fontColor);
     g.drawString("Graph of temperature measured against time at which it was measured", screenright+7, 18);
// end label axes
     // draw another graphic , vertical display
     g.setColor(Color.gray);
     g.fillRect(xmax+10,screentop,16,screenheight+4 );
     g.setColor(gridColor);
     g.fillRect(xmax+12,screentop+2,12,screenheight);
     // above are fixed rectangles below is a pulsating rectangle depending on val
     g.setColor(oscilloBgnd);
     int zerotemp = screentop + screenheight + 2;
     int temperature = screenheight - val;
     g.fillRect(xmax+12,screentop+2,12,temperature);
// end draw another graphic--------------------------------------------------------------
// graphic display of temperature -- this is most important, the movie
     originx = screenright;
     originy = screentop + screenheight - measuredval[0];
// draw 10 line segments     
     for (int i = 1; i <= (numofpoints -1);i++){
     g.setColor(lineColor);
     g.drawLine(originx,originy,originx+grid,screentop + screenheight - measuredval);
// the starting point is originx, originy
// the lowest point of the oscillograph is taken as 0, so screentop + screenheight
// the end point of the line is originx+grid,screentop + screenheight - measuredval[i]
// the above coordinates become the next starting point
     originx = originx+grid;
     originy = screentop + screenheight - measuredval[i];
// ending paint
public void destroy() {  }
public void start() {
timer = new Thread(this);
timer.start();
public void stop() {
timer = null;
public void run() {
Thread me = Thread.currentThread();
while (timer == me) {
try {
Thread.currentThread().sleep(delay);// wait for delay ms
} catch (InterruptedException e) {
System.out.println("Exception in method run: "+e);
repaint();
// start update to avoid flickering of the image
private Image offScreenImage;
private Dimension offScreenSize;
private Graphics offScreenGraphics;
public final synchronized void update (Graphics g) {
Dimension d = getSize();
if((offScreenImage == null) || (d.width != offScreenSize.width) || (d.height != offScreenSize.height))
offScreenImage = createImage(d.width, d.height);
offScreenSize = d;
offScreenGraphics = offScreenImage.getGraphics();
offScreenGraphics.clearRect(0, 0, d.width, d.height);
paint(offScreenGraphics);
g.drawImage(offScreenImage, 0, 0, null); }
// end update ton avoid flickering
}// end applet
//~~~~~~~~~~ end newoscillo13.java
//^^^^^^^^^ now the html part
//~~~~~~~~~ save as newoscillo13.html
<HTML><BODY>
<OBJECT classid="clsid:CAFEEFAC-0013-0001-0000-ABCDEFFEDCBA"
codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0" WIDTH=600 HEIGHT=600>
<PARAM NAME = CODE VALUE = newoscillo13 >
<PARAM NAME = ARCHIVE VALUE ="hellosigned.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.1">
</OBJECT>
</BODY></HTML>
//~~~~~~~~~ save as newoscillo13.html in jdk/bin
//^^^^^^^^^ go to dos > go to C:\jdk1.3.1\bin>
//^^^^^^^^^ type test and then enter
//^^^^^^^^^ wait to type yes and then enter
// go back to windows, make sure java plug in advanced tab has c:\program files\javasoft\jre1.31
now you can execute the html file newoscillo13.html and please it would be fantastic to
send me your comments and suggestions to improve the program.
I'm suzanne available at [email protected]

Here are my suggestions:
1) Get rid of the signing stuff -- you don't need it if you make the changes as I documented in the code posted below. Java applet can read any data file as long as the files are kept under the same document or code base -- notice that filename is specified without a path (i.e., it's relative). This makes it easier to deploy on the web
2) Since you do not need to sign the applet, you don't need to create a jar file.
3) Since you are not using anything special like swing, use the modified HTML shown below and you'll not have to worry about downloading Java plugin because the modified code will work with IE's native JVM version 1.1.4 and NN's native JVM version 1.1.5 -- should you make additions to the code, make sure that you're not calling methods implemented by Sun after the versions described.
If this helps, give me the Dukes.... If you have more questions, ask!
V.V.
PS: The changes have been tested with the appletviewer, IE5, IE5.5, NN4.79 and NN6.2
HTML
======
<HTML><BODY>
<APPLET CODE="newoscillo13.class" CODEBASE="." width=600 height=600></APPLET>
</BODY></HTML>
JAVA FILE
========
import java.awt.*;
import java.awt.Graphics;
import java.applet.Applet;
import java.util.*;
import java.lang.*;
import java.text.*;
import java.io.*;
import java.net.*;        //<---------- V.V.
public class newoscillo13 extends Applet implements Runnable {
   Thread timer;
   // thread to produce a delay before repainting
   int delay = 1000;
   // delay between readings in ms
   boolean initialiser = true;
   String[] nowdate = new String[13];
   // defining the oscilloscope coordinates variables
   int screentop = 36;
   // where the oscillo grid starts
   int screenright = 55;
   // where the oscillo grid starts
   int screenheight = 400;
   // size of oscillo
   int screenwidth = 480;
   // size of oscillo
   int numofcolumns = 12;
   int numofrows = 10;
   int rowheight = screenheight/numofrows;
   int grid = screenwidth/(numofcolumns*5);
   // grid size
   int numofpoints = 61;
   int[] measuredval = new int[numofpoints +1];
   // this array will contain the points to display on the oscillo
   int originx = screenright;
   // pixel coordinates 5
   int originy = (screentop+screenheight/2);
   // pixel coordinates 2 + 320/2 = 162
   int xmax = screenright +
      screenwidth;
   int ymax = screentop +
      screenheight;
   Color lineColor = Color.white;
   Color gridColor = Color.red;
   Color oscilloBgnd = Color.blue;
   Color fontColor = Color.black;
   Color borderColor = Color.red;
   Color measuredvaldispbgnd = Color.green;
   // start programing
   private URL Codebase;     //<---------- V.V.
   public void init() {
      Codebase=getCodeBase();     //<---------- V.V.
   // starting paint
   public void paint(Graphics g) {
      setBackground(Color.white);
      g.setColor(borderColor);
      g.fillRect(screenright-3,screentop-3,screenwidth+6,screenheight+6);
      g.setColor(oscilloBgnd);
      g.fillRect(screenright,screentop,screenwidth,screenheight);
      g.setColor(gridColor);
      g.drawLine(screenright,screentop+screenheight/2,screenright+screenwidth,screentop+screenheight/2);
      g.drawLine(screenright+screenwidth/2,screentop,screenright+screenwidth/2,screentop+screenheight);
      for (int i=screenright; i< screenright+screenwidth+1; i= i+grid*5) {
         g.drawLine(i,screentop,i,screentop+screenheight);
      //vertical lines on oscillograph
      for (int i=screenright; i< screenright+screenwidth+1; i= i+grid) {
         g.drawLine(i,screentop+screenheight/2-5,i,screentop+screenheight/2+5);
      for (int i=screentop; i< screentop+screenheight+1; i= i+screenheight/10) {
         g.drawLine(screenright,i,screenright+screenwidth,i);
      // horizon lines on oscillograph
      for (int i=screentop; i< screentop+screenheight+1; i= i+screenheight/50) {
         g.drawLine(screenright+(screenwidth/2)-5,i,screenright+(screenwidth/2)+5,i);
      // reading a text file > datafile.text placed in c:\jdk1.3.1\bin
      int [] measuredval = new int[numofpoints +1];
      int measuredvalue;
      try {
//       RandomAccessFile f = new RandomAccessFile ("c:\\jdk1.3.1\\bin\\datafile.txt", "r");
* Comments by V.V.
* disk files are random but streams from network are not.  Since the data is being read sequentially anyway,
* the modifications shown below will allow you to read the data file without the need for the applet to be signed
         URL url=new URL(Codebase,"datafile.txt");                       //<---------- put file in same directory as the class file ---- V.V.
         InputStream in;                                                 //<---------- V.V.
         URLConnection connection=url.openConnection();                  //<---------- V.V.
         in=connection.getInputStream();                                 //<---------- V.V.
         BufferedReader f=new BufferedReader(new InputStreamReader(in)); //<---------- V.V.
         int dataarraysize = 0;
         String s;
         while ((s=f.readLine()) != null ) {
            StringTokenizer st = new StringTokenizer(s);
            while (st.hasMoreTokens()) {
               measuredvalue = Integer.parseInt(st.nextToken());
               if (dataarraysize < numofpoints +1) measuredval[dataarraysize] = measuredvalue;
               if (dataarraysize>numofpoints) {
                  measuredval[numofpoints] = measuredvalue;
                  for (int k =1; k <= (numofpoints -1); k++) measuredval[k] = measuredval[k+1];
               dataarraysize++;
         // end while
      // end try
      catch (Exception e) {
         System.out.println("Execption in constructor readertext13: "+e);
      // end catch
      for (int a = 0;a<=(numofpoints -1);a++){
         if (measuredval[a] < 0) measuredval[a] = 0;
         if (measuredval[a] > screenheight) measuredval[a] = screenheight;
         //System.out.println(""+measuredval[a]);
      // display date and temperature horizontally below the oscilloscope
      SimpleDateFormat now1 = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
      Date now = new Date();
      String nowstring = now1.format(now);
      g.setColor(measuredvaldispbgnd);
      g.fillRect(screenright - 4,ymax+5+40,screenwidth+8,20);
      int val = measuredval[numofpoints-1];
      g.setColor(fontColor);
      g.drawString(""+nowstring +
         " Temperature = "+val+
         "�C", screenright+10,ymax +
         20+40);
      // x axis labelling - temporary
      SimpleDateFormat axisdate = new SimpleDateFormat("mm:ss");
      Date noww = new Date();
      while (initialiser) {
         for (int ii = 0; ii<13;ii++) nowdate[ii] = axisdate.format(noww);
         initialiser = false;
      //---------------888888888888888
      // labelling x axis - time for each column
      for (int nw = 0;nw<12;nw++){
         nowdate[nw] = nowdate[nw +
            1];
      nowdate[12] = axisdate.format(now);
      int wn = 0;
      while (wn <12) {
         g.drawString(nowdate[wn], screenright wn*40 - 17 ,screentopscreenheight+20);
         g.drawString(nowdate[wn+1], screenright +(wn+1)*40-17 ,screentop+screenheight+20);
         wn = wn +2;
      g.drawString(nowdate[12], screenright +
         numofcolumns*40-17 ,screentop+screenheight+20);
      // label y axis
      //labeling vertical axis
      g.setColor(fontColor);
      for (int n = 0;n<11;n++) {
         int gridlabel = (screenheight - n*40);
         g.drawString(""+gridlabel+
            "�C", screenright - 45,screentop+screenheight*n/10 +4);
      // title label
      g.setColor(measuredvaldispbgnd);
      g.fillRect(screenright-3,5,screenwidth+5,20);
      g.setColor(fontColor);
      g.drawString("Graph of temperature measured against time at which it was measured", screenright+7, 18);
      // end label axes
      // draw another graphic , vertical display
      g.setColor(Color.gray);
      g.fillRect(xmax+10,screentop,16,screenheight+4 );
      g.setColor(gridColor);
      g.fillRect(xmax+12,screentop+2,12,screenheight);
      // above are fixed rectangles below is a pulsating rectangle depending on val
      g.setColor(oscilloBgnd);
      int zerotemp = screentop +
         screenheight +
         2;
      int temperature = screenheight - val;
      g.fillRect(xmax+12,screentop+2,12,temperature);
      // end draw another graphic--------------------------------------------------------------
      // graphic display of temperature -- this is most important, the movie
      originx = screenright;
      originy = screentop +
         screenheight - measuredval[0];
      // draw 10 line segments
      for (int i = 1; i <= (numofpoints -1);i++){
         g.setColor(lineColor);
         g.drawLine(originx,originy,originx+grid,screentop +
            screenheight - measuredval[ i ]);
         // the starting point is originx, originy
         // the lowest point of the oscillograph is taken as 0, so screentop + screenheight
         // the end point of the line is originx+grid,screentop + screenheight - measuredval
         // the above coordinates become the next starting point
         originx = originx+grid;
         originy = screentop +
            screenheight - measuredval[ i ];
      // ending paint
   public void destroy() {
   public void start() {
      timer = new Thread(this);
      timer.start();
   public void stop() {
      timer = null;
   public void run() {
      Thread me = Thread.currentThread();
      while (timer == me) {
         try {
            Thread.currentThread().sleep(delay);
            // wait for delay ms
         catch (InterruptedException e) {
            System.out.println("Exception in method run: "+e);
         repaint();
   // start update to avoid flickering of the image
   private Image offScreenImage;
   private Dimension offScreenSize;
   private Graphics offScreenGraphics;
   public final synchronized void update (Graphics g) {
      Dimension d = getSize();
      if ((offScreenImage == null) || (d.width != offScreenSize.width) || (d.height != offScreenSize.height)) {
         offScreenImage = createImage(d.width, d.height);
         offScreenSize = d;
         offScreenGraphics = offScreenImage.getGraphics();
      offScreenGraphics.clearRect(0, 0, d.width, d.height);
      paint(offScreenGraphics);
      g.drawImage(offScreenImage, 0, 0, null);
   // end update ton avoid flickering
// end applett

Similar Messages

  • Anybody who wants to create a  small and simple Script for me?

    Hi,
    I am kind of new to Mac and totally AppleScript illiterate, but maybe there is a kind soul amongst all of you that can create an "easy" script for me?
    Well, here it goes:
    Every time I boot up my iMac, two things happen, the first is that I programed the "System Preferences" window to open automatically and display the "Energy Saver" section on the "Sleep" sub-section, so far so good and the second thing is that no matter what I have tried to avoid it, the "Customize" window for a program named "Butler" opens also.
    Now for the request:
    I would like the "System Preference window which displays the Energy Saver section" to change from "Sleep" to "Options" and while being there(in options), to tick(select) AND UN-tick(Un-select) immediately after the "Automatically reduce the brightness of the display before display sleep" Option.
    After doing all of this, the window should be closed.
    Now, is it possible to create a Script that performs all of the above and besides closes the "Butler" window afterwards?
    I know I am asking too much, but I know too that maybe there is someone with a heart of gold and the sufficient knowledge to help me.
    Thanks a lot
    Enrique Diazruanova

    ... Every time I boot up my iMac, two things happen, the first is that I programed the "System Preferences" window to open automatically and display the "Energy Saver" section on the "Sleep" sub-section, so far so good and the second thing is that no matter what I have tried to avoid it, the "Customize" window for a program named "Butler" opens also ...
    From your initial post, it appears that you have the Butler application running and have used it to access one of the Energy Saver opptions already. I don't have that particular application or a laptop to test, but if you've gotten it to access one option it should be able to access another one.

  • Anybody who wants to put DVD's on their ipod I have solution

    http://www.videora.com/en-us/Converter/guides.html
    Now just download the decrypter and videora from the links and it will give you the instructions.

    Got this site from Jeff B. It has a lot of the same info with a little more about the setting, did a great job on a dvd I ripped and put into format for my soon to arrive IPOD 60 gig.
    http://www.ilounge.com/index.php/articles/comments/video-to-ipod-conversion-for- windows-pcs-part-1/

  • Info for people who want to buy shuffle to work with old imac models

    I had for my birthday the shuffle 512 Mo
    simple, good sound, perfect !
    no problem to connect it to my imac strawberry
    but when i tried with the snow one, surprise !!!
    the usb port is to deep, i'll have to buy a usb cord
    to use my shuffle on high power usb port
    bye

    Hi,
    Good you found it.
    http://docs.info.apple.com/article.html?artnum=300589
    Santo

  • I am a sole proprietor business owner (work from home graphic designer) and I have a customer who wants to pay me via Apple pay. Can I accept her transaction? How do I get that rolling?

    I am a sole proprietor business owner (work from home graphic designer) and I have a customer who wants to pay me via Apple pay. Can I accept her transaction? How do I get that rolling?

    Apple Pay: Merchants FAQ - Apple Support

  • NI have a Braun Photo Technik slidescan 3600 and it canot make it work with Lion: Is there anybody who sorted out the same problem? thanks

    I have a Braun Photo Technik slidescan 3600 and I cannot make it work with Lion. Is there anybody who sorted out the same problem? thanks

    We sure do have a problem - this is strictly a user to user assistance forum with users helping other users use the iPhoto program as it is - no one here has any ability to change or influnence the desigh or implementation of iPhoto
    try the iPhoto menu ==> provide iPhoto feedback
    LN

  • I downloaded the pokemon yellow version app for my ipod touch more than a month ago and it is still not working.  It has not worked for anybody who bought it.  How can I get my money back?

    I downloaded the pokemon yellow version app for my ipod touch more than a month ago and it is still not working.  It has not worked for anybody who bought it. Why is it off of the app store now and how do I get my money back?

    That message is usually due to a bad cable.
    Not Charge
    - See:    
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    If you can’t charge your iPhone, iPad, or iPod touch
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - If a 5G iPod               
    Iphone 5 lightning port charging problem - SOLUTION!
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar
    or send it in to Apple. See:     
    Service Answer Center - iPod

  • For all the newbies who wants to learn Java

    I was a newbie like 4 months ago. i have some skills of OOP in C++ like 2 years back but since then i did'nt took any of programming language courses. I have experience in MSaccess and MYsql. i did my internship Last summer with Tennessee Education Lottery as a Database Analyst. At that time i realized what a Corporate Enviorment looks like. Trust me it was a formal interview and i passed it and they placed me in the IT department to write some scripts for the GUI terminal and at the same time create a Company Security Database. i did completed my project but i had to Learn Mysql. and then i realized Java was getting very popular. alot of people told me in the forums to go Java tutorial but i will not agree to start from the sun tutorial. you can do it only if you have a good or may be medium experience of OOP. it was really tough for me and then this magic guy came on the forum and told me to go on this website if you want to learn Java.
    http://chortle.ccsu.edu/java5/cs151java.html
    This site is a brilliant site specially the exercise problems and the quizes really attracted me to Java alot and now i came to realize how easy it is to program in Java rather than C++. Java forums have helped me alot in solving those exercise problems (not with the code but with a good explanation) which was very helpful for me. out of my 210 post i guess i have helped 30 people out and the rest of the questions are regarding those exercises. i came to know encapsulation, inheritance and all that stuff. though i am still not very perfect like i am still having trouble with ComparTo thing but it takes more practice. the more you practice the more you learn. so all the newbies if you really want to learn java even if you dont have any experience in OOp this is the site where you need to start. Hope this will definitely help you alot. thanks to all the Senior members navycoder, captain, paulcw, duffy, turingpest and others also who have helped me in the past. without you i would have not achieved the goal of learning java. now my next step is going to be learn GUI programming Swing. looks fun to me. but at the same time i have my final project for this semester to make on ONline Testing program which will have a database, php scripting and html and xml.
    I will post if i have any problems

    I was a newbie like 4 months ago. i have some skills
    of OOP in C++ like 2 years back but since then i
    did'nt took any of programming language courses. I
    have experience in MSaccess and MYsql. i did my
    internship Last summer with Tennessee Education
    Lottery as a Database Analyst. At that time i
    realized what a Corporate Enviorment looks like.
    Trust me it was a formal interview and i passed it
    and they placed me in the IT department to write some
    scripts for the GUI terminal and at the same time
    create a Company Security Database.Wow they really must like to gamble if they put you in charge of a security database - no offense meant, but that isn't the sort of thing you would want a brand new person working on, unless of course they were giving really high odds ;-)

  • This is for people who wants to mirror all they apple devices when they travel.

    this is for people who wants to mirror all they apple devices when they travel and don't want to unplug everything from the apple tv and take it with them, you can get the amazon fire tv stick and download an app called airplay upnp or the reflector app and mirror all of your apple devices to it, it is great for traveling easy to setup and move around, for example if your traveling and want to use it in the conference room and then want to take with you back to the hotel for the night and plug it in and keep on doing that routine.
    it will be great to use hopeful until apple comes out apple with their own apple tv stick 

    The Verizon DVR is admittedly not the sharpest box on the market. I admit to giving up on the multi-room DVR product, it just never worked satisfactorily for me.
    Hopefully features/functions issues  will improve in the near term with the Cisco/Scientific Atlanta box that obviously isn't going to make Q1. I admit I have ceased  holding my breath. Something does have to happen fairly soon because 160gb drives are literally going out of production.
    You do however make two statements that incorrect. Current TiVO's only need 1 cable card, since the standard cable card today in Verizon's stock  is the M-Card. You also have the option with TiVO of paying either an annual fee, or a one time fee, both of which are lower in the long term than the month to month fee. Alternatively you can by the Moxi DVR, and it includes lifetime service in the purchase price.
    While in theory a truck roll costs $79, in practice if it is for a Cable Card install, it is free (I think  FCC regulations preclude the charge).
    Apparently there is nothing in Verizon's order processing system that tells reps that there is no charge for Cable Card installations, so they often quote the $79 fee because that is the standard charge for technician to come out. As far as I can tell (and there have been lots of posts about cable card installs), no one has in fact been charged the $79 fee..

  • Who wants to be a billionaire ?

    Im busy desinging a game...Who Wants To Be A Billionaire...but
    could someone explain why the following won't draw the Round Rectangles that i ask to be drawn...
    // Main Application Class
    import java.awt.*;
    import BuildCanvas.*;
    public class User
    public static void main (String [] args)
    MakeWindow userInterface = new MakeWindow ();
    userInterface.setSize (800, 600);
    userInterface.setLocation (100, 100);
    // The MakeWindow Class
    import java.awt.*;
    import java.lang.*;
    class MakeWindow extends Frame
    Button finalButton, fiftyButton, phoneButton, askButton, retireButton;
    MenuItem quitItem, newGameItem, helpItem, aboutItem, greenItem, blueItem;
    public MakeWindow ()
    super ("Who Wants To Be A Billionaire");
    // Create the menu items.
    newGameItem = new MenuItem ("New Game");
    quitItem = new MenuItem ("Quit Billionaire");
    helpItem = new MenuItem ("Help");
    aboutItem = new MenuItem ("About");
    // Create the menus.
    Menu mainMenu = new Menu ("File");
    Menu helpMenu = new Menu ("Help");
    // Place the menu items in the menus.
    mainMenu.add (newGameItem);
    mainMenu.add (quitItem);
    helpMenu.add (helpItem);
    helpMenu.add (aboutItem);
    // Place the menus into the menu bar.
    MenuBar myMenus = new MenuBar ();
    myMenus.add (mainMenu);
    myMenus.add (helpMenu);
    setMenuBar (myMenus);
    setBackground (Color.blue);
    pack ();
    show ();
    // Call button method.
    makeButton (finalButton, 180, 550, "Final Answer");
    makeButton (fiftyButton, 270, 550, "50 / 50");
    makeButton (phoneButton, 360, 550, "Phone Friend");
    makeButton (askButton, 450, 550, "Audience");
    makeButton (retireButton, 540, 550, "Retire");
    remainingButtons ();
    } // MakeWindow constructor.
    private void remainingButtons ()
    // Creates windows for Money Ladder and Answer Boxes.
    Graphics g = getGraphics ();
    g.setColor (Color.black);
    g.fillRoundRect (200, 200, 300, 300, 7, 7);                    //**** This Code doesnt work
    g.fillRoundRect (100, 300, 50, 100, 7, 7);                    //**** This Code doesnt work
    g.fillRoundRect (100, 200, 50, 200, 7, 7);                    //**** This Code doesnt work
    // Creates, positions + sets size of buttons.
    private void makeButton (Button currentButton, int posx, int posy, String buttonText)
    currentButton = new Button (buttonText);
    add (currentButton);
    currentButton.setSize (80, 20);
    currentButton.setLocation (posx, posy);
    } // makeButton method.
    have i forgotten to call something ?
    please help me asap.
    thanks
    andrew.

    I took the liberty to make some change, (the black rectangles overlaps)
    import java.awt.*;
    import java.awt.event.*;
    class MakeWindow extends Frame
         Button   finalButton, fiftyButton, phoneButton, askButton, retireButton;
         MenuItem quitItem, newGameItem, helpItem, aboutItem, greenItem, blueItem;
    public MakeWindow ()
         super ("Who Wants To Be A Billionaire");
         setLayout(null);
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);
    // Create the menu items.
         newGameItem = new MenuItem ("New Game");
         quitItem    = new MenuItem ("Quit Billionaire");
         helpItem    = new MenuItem ("Help");
         aboutItem   = new MenuItem ("About");
    // Create the menus.
         Menu mainMenu = new Menu ("File");
         Menu helpMenu = new Menu ("Help");
    // Place the menu items in the menus.
         mainMenu.add (newGameItem);
         mainMenu.add (quitItem);
         helpMenu.add (helpItem);
         helpMenu.add (aboutItem);
    // Place the menus into the menu bar.
         MenuBar myMenus = new MenuBar ();
         myMenus.add (mainMenu);
         myMenus.add (helpMenu);
         setMenuBar (myMenus);
         setBackground (Color.blue);
    // Call button method.
         makeButton(finalButton,180,550,"Final Answer");
         makeButton(fiftyButton,270,550,"50 / 50");
         makeButton(phoneButton,360,550,"Phone Friend");
         makeButton(askButton,450, 550,"Audience");
         makeButton(retireButton,540,550,"Retire");
         setVisible(true);
    // Creates, positions + sets size of buttons.
    private void makeButton(Button currentButton, int posx, int posy, String buttonText)
         currentButton = new Button(buttonText);
         add(currentButton);
         currentButton.setSize (80, 20);
         currentButton.setLocation(posx, posy);
    public void paint(Graphics g)
         g.setColor (Color.black);
         g.fillRoundRect (200, 200, 300, 300, 7, 7); //**** This Code doesnt work
         g.fillRoundRect (100, 300, 50, 100, 7, 7); //**** This Code doesnt work
         g.fillRoundRect (100, 200, 50, 200, 7, 7); //**** This Code doesnt work
    public static void main (String [] args)
         MakeWindow userInterface = new MakeWindow ();
         userInterface.setSize (700, 600);
         userInterface.setLocation (10, 10);
    }

  • Who has Final Cut Studio 2 working perfectly?

    Does anyone here have Final Cut Studio 2 working perfectly across the board? Meaning..All the effects, sound loops, templates, media...etc all show up with no problems except the occasional crash here and there.
    I am about to reinstall the OSX from scratch to install Final Cut Studio properly. Also....I plan to install all of the option media on a seperate hard drive.
    Any suggestions? Advice?

    For starters, I know its an error on my part. I am not talking about isntalling an upgrade. I recenlty brought Final Cut 2 academic. I know Final Cut Studio when it comes to the actual editing process, I just need help with the installation process.
    My Final Cut Studio is is still very very usable...I prodcued an entire pageant with it. I just want it to work perfectly. In Motion...some of the media is missing, in soundtrack, some of the music files are missing.
    When I installed updates for Final Cut and Motion.....motion started crashing and certain effects stopped showing up in Final Cut. I solved the Fianl Cut Problem, but still have hte missing media problem in motion.
    Also, I installed all the optional media on my internal hard drive. 120 to be exact. Now I am down to 2 gig of space.
    I am goign to buy a portable hard drive and store the optional media on there along with video, render files, etc.
    What I am asking is....for the people who have Final Cut Studio 2 working properly...can you guys tell if you installed any final cut studio updates...if so which ones....also, what version of the OSX are you guys running.
    I am really not frustrated are mad....I know it's error on my part....now....I am trying to get it right.

  • Who wants a Venice Core A64? In stock now!!

    Anyone want one? They in stock now!!
    So who wants a venice core A64? Its capable of running 4X512 @ 1T/full speed and has SSE3
    http://www.stegpc.com/details.asp?prodid=amd-64-35v
    http://www.stegpc.com/browse.asp?cat=123
    SSE3 and capable of doing 4X512mb @ full speed/1t

    Quote from: brianstretch on 06-March-05, 04:49:49
    Your first link doesn't work and the second one doesn't list the Venice cores. I'm going to guess that they got pulled in a hurry. Still, maybe we'll see them soon on this side of the pond.
    Yeah they got pulled :( I posted on about three forums, so I think they noticed a huge surge in traffic lol. Never mind, they cant be long. The manin benefit being support for SSE3 and a improved memory controller which allows all four dimm slots to be filled with double sided ram @ full speed +1T.

  • I want what's app to work on my iPad air

    Surely  if what's app doesn't work on iPad this is something that could easy be changed! There must be a lot of people who want to be able to use it the same as there iPhone,
    There seems to be a lot of apps that you can't get on the iPad that you can on your iPhone . I can't understand why this is... I want my iPad to be a mirror of my iPhone so I can see things better with a bigger screen.

    The why is very simple. The maker of the app chooses to only make a phone version. Contact them and suggest  a lot of people would like a iPad version.

  • I have an external drive - WD My Passport FOR MAC. I want to format it to work on both mac and windows. Which format do you think I should use? Will either one cause damage to the files on the hard drive?

    I have an external hard drive - WD My Passport FOR MAC. I want to format it to work on both mac and windows. I also want to be able to connect it to my TV and watch movies.
    I read up and I think I am supposed to use exFAT or FAT32? I also saw MS-DOS. Which format should I should use? Will any of them cause damage to the files on the hard drive?
    My little memory stick uses MS-DOS and it works on both mac and windows.
    Please can you just tell me a little about each and suggest which one to use.
    I know how to change it once you tell me so don't waste your time writing about changing it.

    Will any of them cause damage to the files on the hard drive?
    WARNING: FORMATTING A DRIVE ERASES IT COMPLETELY !!
    If you need to carry large files (e.g., larger than about 4GB) back and forth, you may need ExFAT. Otherwise MS-DOS works for smaller files.
    The Mac can Read, but not write Windows New Technology File System (NTFS) without an add-on program such as Paragon NTFS.

  • In the report level user wants two persons against each work center.

    Hi Experts,
    Please let me know the solution, I have provided scenario below.
    check the query which the user is referring to report:
    Example
    Work center     Person
    KNE33102     44003850
    According to the user, the names for the Work centers should be as follows:
    Work center          Person
    KNE33102         44003850,
    KNE33102        44003603
    I have check the data in T-code-CR03, each work center getting two persons, as can be shown below.
    Work center        Person
    KNE33102           44003850,
    KNE33102           44003603
    In RSA3 it can be seen that both the records are being extracted
    Work center     Start date     End date     Person
    KNE33102     09.02.2009     31.12.2009     44003850
    KNE33102     09.02.2009     31.12.2009     44003603
    In BI , when checking in PSA, it can be seen that the data is also being loaded to BI (Two persons loaded against Work center-KNE33102)
    Work center     Start date     End date     Person
    KNE33102     09.02.2009     31.12.2009     44003850
    KNE33102     09.02.2009     31.12.2009     44003603
    But when loading to the Info Object, one person has deleted. Because of this, in the report level displaying one person.
    Note:-Please let me know what is the procedure, in the report level user wants two persons against each work center.

    Hi,
    As you said in your post the data has mentioned up to 2009. can you try execute the query till to date .
    Regards
    sivaraju

Maybe you are looking for

  • QM_INSPECTION RESULTS

    Dear QM Experts, The case is like this, 1.     I am using manual inspection lot of origin 89. 2.     Prepares an inspection plan under usage 3. 3.     This inspection plan has 3 operations and under each operation there are several MICs defined. 4.  

  • Blue border around text in iBooks Author

    Hello everyone - I have a question that I believe is a stupid setting I can't remember how to deselect. I have a Blue border around all text in my ibooks author file. It looks like this: PLEASE tell me how to get rid of it - if not, what it IS!!! Tha

  • Accessing Members in Another Class

    How would I access a member from another class? In the actionPerformed method, I want to be able to access objects such as filemenu in the Main class. Here's most of my code: class fileEvent implements ActionListener {     public void actionPerformed

  • Add Redio Buttons

    Hi All, Please Help me to add Redio buttons to my selection screen** Thanks.

  • The Help Tab (OSX ML) where you search for something does not work

    If I click "Help" and then search "expand" it will show me where expand is. But in CS6 when I clicked it the command would go through and pull up the page to expand pixels. Instead, I have to go find it. It works in every other Adobe app I use except