Could someone look at my line, please?

Hi there,
I have BT Infinity option 1.  dslchecker.bt.com shows that I should get 38 down and 9 up minimum.  For a few weeks after BT Infinity was installed, I was getting around 38 down and 7 up with interleaving off.
Ever since the service was installed, I have experienced the reboot issue with the HH5 with the event log suddenly reporting "PPP LCP Send Termination Request [User request]".  I originally had a fault open about this reboot issue.
After reading this forum, I tried to solve the reboot issue myself by attaching an Openreach modem (ECI) to the HH5 and connecting the line to the modem.  That solved the disconnection issue and the Openreach modem seemed rock solid.  Speeds were still the same, 37 down and 7 up with no issues at all.
The original fault was still open with BT though but on 20th April, the fault status changed to closed and that's when all the performance issues began.  Prior to the 20th, the only issue had been the HH5 rebooting, something I had solved by using the ECI modem.  However, since the 20th, there are no more reboots with the ECI modem but the performance is dreadful and interleaving has been turned on.
Last night, BT speedtest reported 16mb down and 5mb up.  Tonight, BT speedtest is reporting 10mb down and 5mb up with 38ms ping.  Pings are dropping intermittently when the speed is low too (a couple of time outs per minute).
Today, I replaced the ECI modem and HH5 with a Technicolor TG589 (it's a router with an integrated VDSL2 modem, Plusnet were trialling these for self-install).  The connection itself has stayed up (it always does when I don't use the HH5 on it's own) but the performance is still dreadful.
The thing is, before the 20th when BT closed the fault call, everything was fine and the only problem was the HH5 rebooting for no apparent reason.  I had decent speeds and a decent ping.  Since the 20th, interleaving has been turned on and the stats have plummeted.
I was wondering if this was simple congestion.  I just did another dslchecker speed test and the download was 23 and upload 5 with a ping of 24 so it has improved a bit since starting this post.  When the speed goes down, the pings time out once or twice a minute too.
I did a BT further diagnostics check about 10 minutes ago and it says there are no problems.  My IP profile is 38.69 down and 10mb up with actual speeds of 23.8mb down and 5.09mb up.
I did another check just before posting this mail and speeds had risen to 29 down and 5 up with a ping of 33ms.
Like I said, the performance issues started when BT closed the fault call on the 20th (prior to that, everything was fine as long as I didn't use the HH5 on its own).  I have been wary of doing too many reboots though and I don't think that I have crossed the DLM threshold for an IP profile change.  My IP profile seems the same as it always has been (according to dslchecker).
The mods here have a good reputation for fixing things so could someone take a look at this?
Thanks.
These are the stats currently reported by the Technicolor TG589 (keep in mind the service has improved since I pasted these stats, it was a lot worse when I started this post).
Uptime:
0 days, 12:14:34
DSL Type:
ITU-T G.993.2
Bandwidth (Up/Down) [kbps/kbps]:
5.650 / 39.973
Data Transferred (Sent/Received) [B/B]:
0 / 0
Output Power (Up/Down) [dBm]:
2,8 / 10,8
Line Attenuation (Up/Down) [dB]:
3,0 / 18,3
SN Margin (Up/Down) [dB]:
6,1 / 9,3
System Vendor ID (Local/Remote):
TMMB / ----
Chipset Vendor ID (Local/Remote):
BDCM / IFTN
Loss of Framing (Local/Remote):
0 / 0
Loss of Signal (Local/Remote):
0 / 0
Loss of Power (Local/Remote):
0 / 0
Loss of Link (Remote):
Error Seconds (Local/Remote):
699 / 0
FEC Errors (Up/Down):
197 / 0
CRC Errors (Up/Down):
0 / 2.274
HEC Errors (Up/Down):
0 / 3.970
Solved!
Go to Solution.

Just to add to this.  As has been my previous experience, the speeds have now gone back to normal once the peak hours are over.
It's just turned midnight and the speeds are now 36.29 / 5.12 (ping 22.25ms) which is fine (it was better before when interleaving was off but still).
This problem does seem to occur during peak periods (evening time up to midnight) which would indicate a capacity issue.
There is a PEW scheduled for 24th that includes my area code (01782), I don't know if that will help.
http://status.zen.co.uk/broadband/maintenance-outage-details.aspx?reference=237847
I hpoe it will help.  It's just that the speeds were fine before the fault was closed by BT on the 20th and interleaving was applied.  Ever since the fault was closed, speeds during the evening have been atrocious (before the fault was closed, it was 37.5mb down, since the fault was closed it goes as low as 5mb down).
There is another thing worth noting here too.  Before the fault was closed on the 20th, the event log on the HH5 would get lots of firewall errors (blocked packets, spoofed packets, etc).  Normally, this would be the firewall doing its job but I have never believed that to be the case for the HH5 since the errors are easily reproducable on demand.  All I had to do was to open a few webpages, refresh the log and sure enough, the firewall errors would be there with IP addresses relating to the websites I had opened.
However, ever since the fault was closed on the 20th, there have been no firewall errors in the event log at all during normal activity.  Not a single one.  I can open a plethora of webpages and not a single firewall event appears in the log.  The only time that firewall errors do appear is when I restart something (router, modem, etc).  The firewall entries appear for a few minutes then, presumably because the packets are getting lost.
A lot of people have reported these firewall log entries and my theory is that these reports of "blocked" and "spoofed" and "illegal" packets are actually lost packets caused by a bad connection/line.  So the HH5 isn't actually being attacked at all, it's just detecting that some packets are unexpected and were blocked (unexpected because of the line quality, not because of an attack).
However, even with the degradation in service and the fact that firewall errors no longer appear in the log, the HH5 still reboots randomly so I have had to swap it for a Thomson TG589 instead.
I read a post somewhere that stated that an Openreach engineer had said that some exchanges weren't compatible with the HH5 (hardware compatibility issue) and will lead to this reboot issue.  I do wonder whether that is the case since I have used an ECI modem from Ebay and a Technicolor TG589 from BroadbandBuyer and neither one reboots at all, the HH5 is the only router that does it.  And the problem does only seem to be affecting some people, not everyone.
But still, the reason for my oringal post is the huge degradation in performance during the evenings (up to the early hours).  I'm only mentioning the HH5 firewall entries and the HH5 rebooting issue because they all seem to relate together as if they are all symptoms of an underlying problem.

Similar Messages

  • Is it possible to monitor when apps are used?  Like say I have skpe and I talk to a friend for over 3 hours, could someone look and see that I did that without having my skype or iphone?

    Is it possible to monitor when apps are used and how long they have been used for?  Like say I have skpe or oovoo and I talk to a friend for over 3 hours, could someone look and see that I did that and how long I did it for without having my skype or iphone?

    We are having an identical issue with Photos. I'm able to add information and keywords when they're in my library, but as soon as I share them, all of that information disappears. I'm hoping it's possible because it's a much nicer way to browse shared photo albums than Dropbox.

  • Could someone enlighten me on this please blutooth on location symbol stays on

    hi all I think this could be a easy fix for more of you knowledgable people , Could someone tell me why the location symbol comes on when I turn my blutooth on , I'm sure it never stayed on before the iOS 8 update ?? Or I could be wrong ! All help welcome thank you

    Thanks Jamrs currently looking at that link on a different note pal could you help me with this please
    HI people could someone tell me after the iOS 8 update when I go to reply to a email iCloud sign in pops up ?? And can this be removed or turned of ?? Any help much welcome Thank you
    iPhone 5, iOS 8

  • HT201398 unable to install app,none of these solutions helped me could someone give me new solutions please

    unable to install app,none of these solutions helped me could someone give me new solutions please

    What app?
    What 'solutions'?

  • Slideshow question could someone look at this site?

    Hi Gang!
    I don't have allot of experience with making slideshows but I have a "potential" client who really likes the wesite found at http://www.villasuzannah.com/
    Now I know this is done with Flash but I am wondering if someone could look at it and tell me if I designed a page like the one above is there a "workaround" that would allow me to add a slideshow in the middle of the page like they have?
    Has anyone "wrapped" a web page around a slideshow? are there any examples I could look at?
    Thanks everyone!
    Jim

    Yes you can have a "moving background" and text or shapes or button floating above.
    "Moving background" because it doesn't have to be a slideshow per say... A slildeshow is nothing less than a succession of moving images as is a Quicktime file.
    QT is what you can have: Create your slideshow using iMovie, exprt your QT and the file to autoplay and loop.
    Bring your QT on your iWeb page and design your page....

  • Screen doesn't look right, can someone look at my picture please?

    iMac, 24inch, 3.06Ghz, mid 2009 model
    Hi, I noticed this last night when i was watching a DVD, when ever the screen went dark a white 'spill' came especially about the edges. Is this normal or could it be a problem?
    The picture was taken in complete darkness with only the iMac providing the light. On the screen is a pure black background quickly made in photoshop.
    http://img138.imageshack.us/img138/6223/imacscreenblack.jpg
    Thank you

    I have uploaded a new screen picture taken under the exact same condition with the same camera and black image. As u will be able to tell, it has far more back light bleed, and the black is almost 10 shades lighter then it should be.
    I've had a good look at several other iMac's and pretty much all off them have a little back light bleed, but no way near this! When watching films at night the white bleed dramatically effects the quality of the movie. (This should not be the case, when I have seen cheap Dell Screen perform far better)
    Image link: http://img38.imageshack.us/img38/1103/imga0023.jpg

  • Could someone explain this to me, please?

    I fixed a problem without really understanding how and why the problem occured or even why my fix worked.  I'm hoping somebody can explain it to me.  Here's the problem:
    My form had this structure:
    MainSubform
         Page1Subform
              Subform1
              Subform2
              Subform3
         Page2Subform
              other subforms
         Page3Subform
              other subforms.
    There were other objects under the
    My application viewer, which is FormStream filler, was finding a fourth node under Page1Suform.  I couldn't access this phantom node in any way to find out any information about it, so any Javascript which navigated the hierarchy would error when it tried to reach it.
    Through a long consultation with other developers, I found that there was something called a 'bind match" node.  They couldn't explain it to me.  Not knowing what a 'bind match" node was, and figuring it had something to do with linking a data source to an object, I started checking the Default Binding tab in the Object Panel.  The Default Binding for Page1Subform was set to None, while the Default Binding for every other subform was set to Normal.  I set the Default Binding for Page1Subform to Normal and my problem disappeared.  I tried setting other Default Binding properties of other subforms to None to see what would happen, and the phantom node seemed to reappear and follow those subforms around.
    Can anybody give me an explanation of what was happening?

    Hi again,
    right so I have done what you all said and gone and read a book on LabView fundamentals, "introduction to data aquisition with LABVIEW by RH king"
    it has answered my questions about the for loop and most of the rest, the thing I am now having trouble with is the pink lines coming from the DAQ assistant, I have tried all the options, generate signal, aquire, sine wave, digital, continuous samples, N samples but I can't get a pink line, all I can get in that location is a gray "error out", is this all it is, just connect error out to error in.
    Also another thing that is confusing me is, just before the graph, that component between the last division and the graph indicator, I am having trouble identifying.
    Sorry to keep badgering on about this one but I need to get this example completed for work.

  • Could Someone Explain Interfaces in English Please?

    Hi Everyone-
    I'm new to Java. I've been reading "Learning Java" from O'Reilly. From what I understand, Interfaces are sort of a structural framework that lists certain methods. Any class that implements an interface must contain this "structure" and any objects intantiated using this class will be of the interface type? Is this correct? If not can someone explain interfaces in laymen's terms and the what is the usefulness of implementing Interfaces?
    Thanks.
    SA

    I'm new to Java. I've been reading "Learning Java"
    from O'Reilly. From what I understand, Interfaces are
    sort of a structural framework that lists certain
    methods. Any class that implements an interface must
    contain this "structure" ...OK so far...
    and any objects intantiated
    using this class will be of the interface type? Is
    this correct? It depends what you mean by "interface type". An interface can be said to define a type. So a class that implements that interface implements that type, and an object instantiated from that class is an instance of that type.
    If not can someone explain interfaces in
    laymen's terms and the what is the usefulness of
    implementing Interfaces?The utility of interfaces is that, without being tied down to particular implementations, allows types of objects to be defined.
    For example....is there a doctor in the house? Say:
    1) a Doctor is:
    - human
    - has gone to medical school
    - heals the sick
    2) a Norwegian is:
    - a person from Norway (assume we've defined "person" at this point)
    3) a Canadian is:
    - a person from Canada
    So:
    4) a Norwegian Doctor is a person from Norway who fulfills the qualifications to be a doctor
    5) a Canadian Doctor is a person from Canada who fulfills the qualifications to be a doctor
    6) a Canadian who is not a Canadian Doctor, is a person from Canada who does not fulfill the qualifications to be a doctor.
    If your appendix is about to burst, you need a doctor. You don't care if the doctor is Canadian or Norwegian (assume everybody including yourself speaks Esperonto so there aren't any language issues). You do care deeply if the person trying to remove your appendix is a Canadian but not a Canadian doctor.
    If you were establishing a hospital, you'd want doctors. If you were to write this in code, you'd have something like:
    Hospital.hireDoctor(Doctor doc);meaning, that method in the Hospital class will hire a doctor, which is the important part. So this would work:
    Doctor doc = NorwegianMedicalSchool.createDoctor();
    Doctor doc_eh = CanadianMedicalSchool.createDoctor();
    yourHospital.hireDoctor(doc);
    yourHospital.hireDoctor(doc_eh);The point is, you can write your Hospital code without knowing precisely how "Doctor" is implemented -- whether the doctors come from Canada or Norway. You just write it as appropriate given that you have a Doctor. And then when a Doctor is created by a Japanese medical school, it doesn't break your code. This is why interfaces are said to define "contracts" -- an interface defines what something is (i.e., what it does), and you can make your code insist on getting something that does that (fulfills the contract).
    Does this make any sense? Have I offended the Canadians? Probably.

  • Could someone look at my code, I can't see the error myself

    Hi,
    I have been working on a small game, and have been able to make most of it run.
    However, every now and again when i try to start it, it loads the frame and graphics, but don't start the game loop.
    I think i have been starring at it too long, because i can't see WHY?
    Here is the code, i assume its something connected to the boolean "waitingForKeyPress"
    Sorry about the commentss being in danish, but its a quite simple program, so im sure it makes sense.
    public class EagleFlight extends Canvas {
         private static final long serialVersionUID = 1L;
         //Strategybuffer til page flipping, samt grafiske variable.
         private BufferStrategy strategy = null;
         //private BufferedImage backbuffer = null;     
         private ImageEntity background = null;     
         //private Graphics2D g;     
         //private BufferedImage expl;
         private BufferedImage[] explosion2;     
         private boolean gameRunning = true;
         //Lister over entiteter i spillet.
         private ArrayList<Entity> entities = new ArrayList<Entity>();
         private ArrayList<ShipEntity> shipAnimation = new ArrayList<ShipEntity>();
         //Lister over entiteter der evt skal fjernes i gameLoop.
         private ArrayList<Entity> removeList = new ArrayList<Entity>();
         private ArrayList<Entity> removeAsteroid = new ArrayList<Entity>();
         //Variable til spillerens skib.
         private ShipEntity ship, shipL, shipR, eagleM;
         private double moveSpeed = 300;
         private long lastFire = 0;
         private long firingInterval = 500;
         private String message = "";
         //Booleans til keyInput og spilkontrol.
         private boolean waitingForKeyPress = true;
         private boolean leftPressed = false;
         private boolean rightPressed = false;
         private boolean firePressed = false;
         private boolean isThrusting = false;
         private Boolean shipHit = false;
         private Boolean animation = false;
         //Klasser der bruges i spillet.
         private FXSound fxSound = null;
         private Music music;     
         int score =0;
         private int astroidCount = 0;
         //Variable til ekspoltionsanimation.
         private int v = 0, x = 0, y = 0, eksp = 0;
         //Opretter JFrame og tilf&#65533;jer JPanel.
         public EagleFlight(){
              JFrame container = new JFrame("Eagle Flight 1999");                    
              JPanel panel = (JPanel) container.getContentPane();
              panel.setPreferredSize(new Dimension(800,600));
              panel.setLayout(null);
              //Tilf&#65533;jer EagleFlight canvas til JPanel
              setBounds(0,0,800,600);
              panel.add(this);
              //S&#65533;ttes til true, s&#65533; for&#65533;get graphics har ansvaret.
              setIgnoreRepaint(true);
              //Pakker og synligg&#65533;r vinduet.
              container.pack();
              container.setResizable(false);
              container.setVisible(true);
              // Tilf&#65533;jer windows close funktion
              container.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              // Tilf&#65533;jer keyListener og inputhandler.
              addKeyListener(new KeyInputHandler());
              //S&#65533;tter fokus til dette vindue-
              requestFocus();
              // Laver buffering strategy til accelerated graphics
              createBufferStrategy(2);
              strategy = getBufferStrategy();
              // Tilf&#65533;jer midlertidigt Entities, s&#65533; startsk&#65533;rmen ikke er tom.
              initEntities();
         }//End of EagleFlight().
         //Nulstiller variable og lister.
         private void startGame() {
              entities.clear();
              initEntities();          
              shipHit = false;          
              leftPressed = false;
              rightPressed = false;
              firePressed = false;
              gameRunning = true;
              music = new Music();
              music.start();
              waitingForKeyPress = false;
         }//end of startgame().
         private void initEntities() {
              //Laver 3 skibe til thrusteranimationen.
              ship = new sprite.ShipEntity(this,"eagle.png",370,430);
              shipL = new sprite.ShipEntity(this,"eagle1.png",370,430);
              shipR = new sprite.ShipEntity(this,"eagle2.png",370,430);
              shipAnimation.add(ship);
              shipAnimation.add(shipL);
              shipAnimation.add(shipR);
              //Opretter baggrundsbillede.
              new BufferedImage(800,600,BufferedImage.TYPE_INT_RGB);
              background = new ImageEntity("stars.png",0,0);
              //Klarg&#65533;r special effect lyd.
              fxSound = new FXSound();
              //Opretter eksplotionsanimation
              explosion2 = new ExplotionImages().explosion();
              //Laver en pokkers bunke asteroider og placerer dem "over" JPanel, s&#65533; de falder naturligt.
              for (int row=0;row<6;row++) {
                   for (int x=0;x<10;x++) {
                        Entity astroid = new sprite.Astroid(this,"asteroid1.png",20+(x*120),(-2800)+row*400);
                        entities.add(astroid);                                   
                        astroidCount++;
              for (int row=0;row<6;row++) {
                   for (int x=0;x<10;x++) {
                        Entity astroid = new sprite.Astroid(this,"asteroid4.png",20+(x*120),(-3800)+row*400);
                        entities.add(astroid);                                   
                        astroidCount++;
              for (int row=0;row<6;row++) {
                   for (int x=0;x<10;x++) {
                        Entity astroid = new sprite.Astroid(this,"asteroid2.png",20+(x*120),(-4800)+row*400);
                        entities.add(astroid);                                   
                        astroidCount++;
              for (int row=0;row<6;row++) {
                   for (int x=0;x<10;x++) {
                        Entity astroid = new sprite.Astroid(this,"asteroid3.png",20+(x*120),(-5800)+row*400);
                        entities.add(astroid);                                   
                        astroidCount++;
         }//end of initEntities()
         //Fjerner de entities der ikke bruges mere.
         //@param entiteten der skal fjernes.
         public void removeEntity(Entity entity)
              removeList.add(entity);               
         }//end of removeEntity().
         //Tilf&#65533;jer ramte asteroider til remove listen.
         //@param entiteten der skal tilf&#65533;jes.
         public void removeAsteroid(Entity doomed){
              removeAsteroid.add(doomed);
         }//End of removeAsteroid().
         //Udf&#65533;res n&#65533;r spilleren d&#65533;r.
         public void notifyDeath() {
              message = "All your base are belong to us!";
              shipHit = true;
              removeAsteroid.add(eagleM);
              shipAnimation.clear();          
         }//End of notifyDeath().
         //Fors&#65533;ger at affyre v&#65533;ben, hvis reload er ok og skibet ikke er ramt.
         public void tryToFire() {
              // check that we have waiting long enough to fire
              if (System.currentTimeMillis() - lastFire < firingInterval) {
                   return;
              if (!shipHit){
                   lastFire = System.currentTimeMillis();
                   ShotEntity shot = new sprite.ShotEntity(this,"shot.gif",ship.getX()+23,ship.getY()-15);
                   entities.add(shot);
                   fxSound.fxSound1();
         }//End of tryToFire().
         //Metode til at vinde spillet.
         public void notifyAlienKilled() {
              astroidCount--;
              score++;
              fxSound.fxSound3();
              if (astroidCount == 0) {
         }//End of notifyAlienKilled()
         public void gameLoop() {
              long lastLoopTime = System.currentTimeMillis();
              long timeInGame = 0;
              // I dette loop udf&#65533;res spillets grafik og logik.
              while (gameRunning) {
                   // Beregner tid for hvor meget de enkelte grafiske enheder skal flyttes
                   long delta = System.currentTimeMillis() - lastLoopTime;
                   lastLoopTime = System.currentTimeMillis();
                   timeInGame = (timeInGame + System.currentTimeMillis()/100000);
                   // Skaffer den grafiske acceleration.
                   // Tegner baggrunden.
                   Graphics2D g = (Graphics2D) strategy.getDrawGraphics();
                   background.draw(g);
                   //Cykler rundt mellem asteroider og flytter dem.
                   if (!waitingForKeyPress) {
                        for (int i=0;i<entities.size();i++) {
                             Entity entity = (Entity) entities.get(i);
                             entity.move(delta);
                        //Bev&#65533;ger de 3 skibe i sync.
                        for (int e=0;e<shipAnimation.size();e++) {
                             ShipEntity fakeeaglemove = (ShipEntity) shipAnimation.get(e);
                             fakeeaglemove.move(delta);
                   // Cykler rundt mellem entities og tegner dem.          
                   for (int i=0;i<entities.size();i++) {
                        Entity entity = (Entity) entities.get(i);
                        entity.draw(g);
                   //Tegner det skib der er i brug.
                   for (int e=0;e<shipAnimation.size();e++)
                        eagleM = (ShipEntity) shipAnimation.get(e);
                        if (leftPressed)
                        {eagleM = shipL;
                        if (rightPressed)
                        {eagleM = shipR;
                        else if ((!leftPressed) && (!rightPressed))
                        {eagleM = ship;
                        eagleM.draw(g);
                   //Brute force detection p&#65533; skibet og asteroider.               
                   try {
                        for (int c = 0; c < entities.size(); c++) {
                             for (int m = 0; m < shipAnimation.size(); m++) {
                                  Entity me = (Entity) shipAnimation.get(m);
                                  Entity him = (Entity) entities.get(c);
                                  if (me.collidesWith(him)) {
                                       //removeAlien.add(him);
                                       me.collidedWith(him);
                                       him.collidedWith(me);
                   } catch (Exception e) {
                   //Brute force detection p&#65533; skud og asteroider.
                   try {
                        for (int p = 0; p < entities.size(); p++) {
                             for (int s = p + 1; s < entities.size(); s++) {
                                  Entity me = (Entity) entities.get(p);
                                  Entity him = (Entity) entities.get(s);
                                  if (me.collidesWith(him)) {
                                       me.collidedWith(him);
                                       him.collidedWith(me);
                   } catch (Exception e) {
                   //Explotion animation.
                   for (int i=0;i<removeAsteroid.size();i++) {
                        Entity entity = (Entity) removeAsteroid.get(i);
                        explosion(entity);                                   
                   if (animation){
                        int sequence[] = { 0,1,2,3,4,5,5,4,3,2,1,0};                    
                        eksp = sequence[v];
                        g.drawImage(explosion2[eksp], x-100,y-100, null);
                   //Afslutter spillet hvis spillerens skib er ramt.
                   if (eksp == 0 || v == 12){     
                        if (shipHit){
                             animation = false;
                             waitingForKeyPress = true;
                             music.stop();                                        
                             if(isThrusting){
                                  fxSound.StopThruster();
                        animation = false;
                        v = 0;
                        eksp = 0;
                   v++;//Opdaterer image nummer for eksplotionsanimation til n&#65533;ste genneml&#65533;b.
                   // Fjerner entities der ikke er med mere.
                   entities.removeAll(removeList);
                   entities.removeAll(removeAsteroid);
                   //Nulstiller removelisterne
                   removeList.clear();                              
                   removeAsteroid.clear();
                   // Mens der ventes p&#65533; keyinput vises dette.
                   if (waitingForKeyPress) {
                        g.setColor(Color.white);
                        g.drawString(message,(800-g.getFontMetrics().stringWidth(message))/2,250);
                        g.drawString("Insert coin",(800-g.getFontMetrics().stringWidth("Insert coin"))/2,300);
                        timeInGame = 0;
                   g.setColor(Color.white);               
                   g.drawString("Score: "+score,720,595);
                   g.drawString("Time in Flight: "+timeInGame/1000000000+" Secs",5,595);
                   // Graphics ryttes op og bufferen flippes.
                   g.dispose();
                   strategy.show();
                   // Nulstiller skibets bev&#65533;gelse.
                   ship.setHorizontalMovement(0);
                   shipL.setHorizontalMovement(0);
                   shipR.setHorizontalMovement(0);
                   //Tilpasser skibets horizontale bev&#65533;gelseshastighed til input.
                   if ((leftPressed) && (!rightPressed))
                        ship.setHorizontalMovement(-moveSpeed);
                        shipL.setHorizontalMovement(-moveSpeed);
                        shipR.setHorizontalMovement(-moveSpeed);
                   else if ((rightPressed) && (!leftPressed))
                        ship.setHorizontalMovement(moveSpeed);
                        shipL.setHorizontalMovement(moveSpeed);
                        shipR.setHorizontalMovement(moveSpeed);//animationtest ship changed to eagle
                   //Affyrings sekvens
                   if (firePressed)
                        tryToFire();
                   // Lille pause til andre ting.
                   try { Thread.sleep(10); } catch (Exception m) {}
         }//End of gameLoop
         //Metode til kontrol af thrusterlyden.
         private void thrusterSound(){
              if (!isThrusting){
                   fxSound.fxSound2();               
                   isThrusting = true;
         }//End of thrusterSound
         //Metode til at inds&#65533;tte eksplotion p&#65533; den rette plads.
         //@param den ramte entitet.
         private void explosion(Entity entity){
              x = entity.getX();
              y = entity.getY();
              animation = true;
         }//End of explosion
         //Inner class der klarer input fra keybard.
         private class KeyInputHandler extends KeyAdapter {
              //S&#65533;tter t&#65533;ller til 1, s&#65533; wait for input virker.
              private int pressCount = 1;
              //@param den trykkede tast.
              public void keyPressed(KeyEvent e) {
                   // Ser f&#65533;rst om der ventes p&#65533; input til start.
                   if (waitingForKeyPress) {
                        return;
                   //Er spillet igang udf&#65533;res input
                   if (e.getKeyCode() == KeyEvent.VK_LEFT) {
                        leftPressed = true;                         
                        thrusterSound();
                   if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
                        rightPressed = true;
                        thrusterSound();
                   if (e.getKeyCode() == KeyEvent.VK_SPACE) {
                        firePressed = true;
              } //End of keyPressed
              //Stopper handlingen fra input
              //@param den trykkede tast.
              public void keyReleased(KeyEvent e) {
                   // if we're waiting for an "any key" typed then we don't
                   // want to do anything with just a "released"
                   if (waitingForKeyPress) {
                        return;
                   if (e.getKeyCode() == KeyEvent.VK_LEFT) {
                        leftPressed = false;
                        fxSound.StopThruster();
                        isThrusting = false;
                   if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
                        rightPressed = false;
                        fxSound.StopThruster();
                        isThrusting = false;
                   if (e.getKeyCode() == KeyEvent.VK_SPACE) {
                        firePressed = false;
              }//End of keyReleased
              //Metode til at starte spillet med any key.
              //@param den trykkede tast.
              public void keyTyped(KeyEvent e) {
                   if (waitingForKeyPress) {
                        if (pressCount == 1) {
                             // Starter spillet.
                             waitingForKeyPress = false;
                             startGame();
                             //pressCount = 0;
                        } else {
                             pressCount++;
                   // Tilf&#65533;jer esc key til at afslutte spillet.
                   if (e.getKeyChar() == 27) {
                        System.exit(0);
         }//End of KeyTyped.
         public static void main(String args[])
              EagleFlight ef = new EagleFlight();          
              ef.gameLoop();
         }//End of main.
    }//End of class EagleFlight.

    Mondariz wrote:
    It was a copy/paste job from Eclipse, not suer why it formatted like this. You need to add code tags.
    [edit: do what Darryl says... as opposed to my crap version that did not format properly either]
    As far as the tracing goes. It shouldn't be taking hours. Start by putting them in where your program starts and move on.

  • Could someone look at this error.

    Here are the errors:
    Compiling 1 source file to C:\Documents and Settings\James Kovacs\JavaGin\build\classes
    C:\Documents and Settings\James Kovacs\JavaGin\src\App.java:76: local variable playerHand is accessed from within inner class; needs to be declared final
                    playerHand = DrawCardHandChange(playerHand, DrawCardDiscard(_discardPile));  //should add card from discard to hand
    C:\Documents and Settings\James Kovacs\JavaGin\src\App.java:76: local variable playerHand is accessed from within inner class; needs to be declared final
                    playerHand = DrawCardHandChange(playerHand, DrawCardDiscard(_discardPile));  //should add card from discard to hand
    C:\Documents and Settings\James Kovacs\JavaGin\src\App.java:76: local variable _discardPile is accessed from within inner class; needs to be declared final
                    playerHand = DrawCardHandChange(playerHand, DrawCardDiscard(_discardPile));  //should add card from discard to hand
    C:\Documents and Settings\James Kovacs\JavaGin\src\App.java:77: local variable _discardPile is accessed from within inner class; needs to be declared final
                    _discardPile = DrawCardDiscardChange(_discardPile);  //take top card from discard
    C:\Documents and Settings\James Kovacs\JavaGin\src\App.java:77: local variable _discardPile is accessed from within inner class; needs to be declared final
                    _discardPile = DrawCardDiscardChange(_discardPile);  //take top card from discard
    5 errors
    BUILD FAILED (total time: 0 seconds)Here is the code:
    public class App extends javax.swing.JFrame {
        /** Creates new form App */
        public App() {
            initComponents(); //creates original state of GUI
            getContentPane().setBackground(new Color(0,102,0)); //paints the ContentPane to match the GUI
            int[] _suitDeck = {0,                                           //card number in array corresponds to suit number
                               1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,     //1 = clubs, 2 = spades, 3 = hearts, 4 = diamonds
                               1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,
                               1,2,3,4,1,2,3,4,1,2,3,4};
            int[] _cardDeck = GenerateDeck();  //generates an initial deck
            String[] CONVERTED_cardDeck = ConvertDeck(_cardDeck);  //creates a deck where cards are named
            System.out.println("*****ORIGINAL DECK*****");
            for (int j=1; j<_cardDeck.length; j++) {System.out.println(j + ". " + CONVERTED_cardDeck[j]);}  //print the original deck
            int[] playerHand = DrawHand(_cardDeck);  //draws a hand for the player
            _cardDeck = DrawHandDeckChange(_cardDeck);  //changes deck by taking out player hand
            CONVERTED_cardDeck = ConvertDeck(_cardDeck);  //updates named deck to print
            System.out.println("*****FIRST NEW DECK*****");
            for (int j=1; j<_cardDeck.length; j++) {System.out.println(j + ". " + CONVERTED_cardDeck[j]);}  //prints named deck
            int[] compHand = DrawHand(_cardDeck);  //draws a hand for the computer
            _cardDeck = DrawHandDeckChange(_cardDeck);  //changes deck by taking out computer hand
            CONVERTED_cardDeck = ConvertDeck(_cardDeck);  //updates named deck to print
            System.out.println("*****SECOND NEW DECK*****");
            for (int j=1; j<_cardDeck.length; j++) {System.out.println(j + ". " + CONVERTED_cardDeck[j]);}  //prints named deck
            String[] CONVERTED_playerHand = ConvertDeck(playerHand);  //creates a named player hand
            String[] CONVERTED_compHand = ConvertDeck(compHand);  //creates a named computer hand
            System.out.println("*****PLAYER HAND*****");       
            for (int j=1; j<playerHand.length; j++) {System.out.println(j + ". " + CONVERTED_playerHand[j]);}  //prints player hand
            DisplayHand(playerHand, jButton1, jButton2, jButton3, jButton4, jButton5, jButton6, jButton7, jButton8);  //sets button icons of player hand
            System.out.println("*****COMPUTER HAND*****");       
            for (int j=1; j<compHand.length; j++) {System.out.println(j + ". " + CONVERTED_compHand[j]);} //prints computer hand
            jButton10.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\James Kovacs\\JavaGin\\" + DrawCardDeck(_cardDeck) + "_big.gif"));  //sets button icon for discard pile with top card from deck
            int[] _discardPile = new int[2]; //creats discard pile array
            _discardPile[1] = DrawCardDeck(_cardDeck);  //adds top card from deck to discard pile
            _cardDeck = DrawCardDeckChange(_cardDeck);  //updates deck by taking top card       
            CONVERTED_cardDeck = ConvertDeck(_cardDeck);  //updates nameds deck
            System.out.println("*****DRAWN FROM DECK*****");
            for (int j=1; j<_cardDeck.length; j++) {System.out.println(j + ". " + CONVERTED_cardDeck[j]);} //prints drawfrom deck
            jButton10.addActionListener(new ActionListener( ) {
                public void actionPerformed(ActionEvent ev) {
                    playerHand = DrawCardHandChange(playerHand, DrawCardDiscard(_discardPile));  //should add card from discard to hand
                    _discardPile = DrawCardDiscardChange(_discardPile);  //take top card from discard
        }

    that won't actually change the variables though
    because they are within the function right?That won't even compile, since playerHand and _discardPile are local variables and not fields.
    So, either make playerHand and _discardPile member variables (fields) or introduce a data stuct, i.e.
    public class App extends javax.swing.JFrame {
         /** Creates new form App */
        public App() {
            // [snip]
            final DataHolder data = new DataHolder();
            data.hand = playerHand;
            data.pile = _discardPile;
            jButton10.addActionListener(new ActionListener( ) {
                public void actionPerformed(ActionEvent ev) {
                    data.hand = DrawCardHandChange(data.hand, DrawCardDiscard(data.pile));
                    data.pile = DrawCardDiscardChange(data.pile);
        private static final class DataHolder {
            int[] hand;
            int[] pile;
    }With this approach you will obviously have to adjust the code that accesses playerHand or _discardPile to access data.hand and data.pile respectively.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I have a Mac mini Snow Leopard. In Numbers the grid lines are so faint that they are barely visible. Please could someone help me sort out this problem.

    I have a Mac mini Snow Leopard. In Numbers the grid lines are so faint that they are barely visible. Pleease could someone help me sort out this problem?

    The User Manual has this:
    Formatting Table Cell Borders
    You can change the line thickness and color of table cell borders. Or you can hide the border of any cell.
    To format table cell borders:
    1 Select the cell border segments you want to format.
    2 Use the controls in the format bar or in the Table inspector.
    Click to choose a stroke color.
    Click to choose a stroke style.
    Click to choose a line thickness.
    Stroke pop-up menu:  Lets you choose a stroke style. Choose None to hide borders.
    Line thickness:  Controls the thickness of the stroke.
    Color well:  Lets you choose a stroke color.
    When you click the color well in the format bar, a color matrix appears. Select a color by clicking it in the matrix, or click Show Colors to open the Colors window for additional color options.
    When you click the color well in the Table inspector, the Colors window opens.
    User Guide: http://manuals.info.apple.com/en_US/Numbers09_UserGuide.pdf

  • Could someone please help me with getting the sabnzbd daemon to start?

    Hi everyone,
    I'm a classic newbie.  I managed to follow some instructions I found on the web to get sabnzbd to install (via Yaourt), and when I invoke it from the command line, it works fine.
    I've read that you can get it to start as a daemon, which would be really good.  Could someone please explain how this should be done?
    Where do I need to put the sabnzbd.init file?
    What about the sabnzbd.confd file?
    I'm okay enough with adding sabnzbd to the /etc/rc.conf file, but I can't quite configure it so that the necessary files are in place to start it.
    If you need any details of my setup, please let me know.
    Thanks heaps,
    Luke

    birdie101 wrote:Where would I find a good place to describe how to install programs using PKGBUILDs?  and what that process is actually doing?
    Apart from the wiki article on ABS, always look at the pkgbuild when in doubt. This is also helpful when you want to know what compile arguments are passed to GCC. Custom postinstall commands are run through .install file (example what is displayed after installation), this is generally foo.install in the AUR for a pkg named foo. And most importantly, familiarize yourself with compiling process, and Arch specific routines like a daemon should be defined in /etc/rc.d/, instead of /etc/init.d/ in other linuxes.
    Edit: A best exercise would be to create a pkgbuild yourself. Arch always recommends community contributions.
    Last edited by shemz (2010-09-24 08:08:14)

  • Could someone help me please

    I am doing a piece of code in RMI here is what i have come up with up to now:
    public class cipherimpl
        extends java.rmi.server.UnicastRemoteObject
        implements cipher {
        public cipherimpl()
             throws java.rmi.RemoteException {
             super();
         char[] tempArray;
         int b = 3;
        public String encrypt(String nameofString, int b)
             throws java.rmi.RemoteException {
                   tempArray = nameofString.toCharArray();
                   char c =  char[0];
                   int c1 = (int) c;
                   c2 = c1+b;
                   return nameofString;
         public String decrypt(String nameofString, int b)
              throws java.rmi.RemoteException {
                   tempArray = nameofString.toCharArray();
                   char d = char[0];
                   int d1 = (int) d;
                   d2 = d2-b;
                   return nameofString;
    }I also have a code called chiper.java which defines the two methods encrypt and decrypt.
    For the impl file i need to make it use the Caesar Cipher method where there is an integer and this integer is used to encrytp a word so if the integer is equal to 1 each of the letters in the word are incremented by 1 so if the word "HELLO" was inputted the output would be "IFMMP" if u get what i mean but i am finding it difficult to put into code.
    Could someone give me a few clues please.
    Thanx
    MARK

    mate, i wasn't saying why are you messing with RMI, what I mean was why are you trying to do it all at once. Try to break down the problem. If all you want to do is to increment the character by one then the simplest way to do it is to set up an array of all the letters of the alphabet. Iterate over the string getting each character. Look it up in the array, and then get the next one, and add that to an output StringBuffer. When you have reached the end of the input string, toString() the StringBuffer, and you are done.
    Fundamentally, programming is all about breaking problems up. If you try and look at everything at once you will either go mad, or not be able to cope.
    HTH

  • Could someone please help me . . .

    Hello,
    Could someone please tell me how to go about writing a java program that would be able to process a statement/sentence. How can I make it is so that when someone types in a statement/sentence and presses enter, the program calculates the total number of words in the statement and whether it ends with a period, question mark, or an exclamation. Could anyone start it off for me so I'd be able to see how it works. My textbook doesn't contain any samples that pertain to this. Just in case you have no idea what I'm talking about, here's what my handout says . . .
    Write a Java program to process a statement. You may assume that the statement contains a series of words each separated by exactly one blank space and ending with exactly one punctuation symbol which is either a �period � for a sentence�, �question mark � for a question� or �exclamation point � for an exclamation.� You may assume that the statement fits on one line, it does not wrap over more than one line. You may also assume that no other punctuation symbol is used other than the ending character of the statement.
    The program should output:
    1.     The type of statement processed (sentence, question or exclamation).
    2.     The total number of words in the statement.
    3.     The longest word in the statement � if multiple words are of the same longest length � output
    the first of those words found in the statement.
    4.     The shortest word in the statement � if multiple words are of the same shortest length � output
    the first of those words found in the statement.
    5.     The number of short words found in the statement (containing 1-3 characters).
    6.     The number of medium words found in the statement (containing 4-6 characters).
    7.     The number of long words found in the statement (containing 7 or more characters).
    Again, if someone would be kind enough to start it off for me or give me an example on how to go about doing it, I would greatly appreciate it !!!!!
    Thanks for your time,
    Ana : )

    public class Austin
    public static void main(String [] args)
    try {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = "";
    while (str != null) {
    System.out.print("> ");
    str = in.readLine();
    StringTokenizer st = new StringTokenizer(str, " ");
    /* analyze your tokens here */
    } catch (IOException e) {
    }

  • HT1423 Could someone please fix the broken images for iMac 27 Oct 2013 instructions? I miss the webmaster's email on the bottom of the page...

    I know that's so 90s, but all the images for iMac 27 Mid 2013 are broken. Could someone please look into that?
    Thanks.

    I can see that too. I am referring to <http://support.apple.com/kb/HT1423?viewlocale=en_US#1>. This is the first link for iMac 27".
    Your screenshot refers to <http://support.apple.com/kb/HT1423?viewlocale=en_US#4>.
    This is what I see. I am still confident that this is a problem with the image link:

Maybe you are looking for

  • Q10 - I tap the screen to select, the icon changes color (indicating selection) but nothing happens...

    I notice an issue that predominantly happens when I use my thumbs to tap but does happen with fingers from time to time.  When I select an icon (say, for instance the lower-right corner icon to jump into camera settings), the icon changes color sligh

  • MacPro Line-Out Audio -- Is the Signal Clean?

    I have my home stereo connected to my MacPro through a USB interface device called a "Stereo Link 1200." It's something I bought years ago, when I was still a PC user and the audio output from Soundblaster cards left a lot to be desired. This unit co

  • Warning msg at the time of PR creation

    When I am creating the PR a Warning msg is being displayed as:- "Base unit of measure KG adopted from  material master record" Could anybody suggest me, why this msg is comming. and if I ignore it and go ahead with pressing enter, Is there any future

  • Hyper draw doesn't appear unless you set Hyperdraw/Articulation ID

    From the last 2 or 3 version Logic has an annoying behaviour on score window: Hyper draw doesn't appear unless you set Hyperdraw/Articulation ID/Any or None... This procedure has 3 minus points: 1. The editing is slowed down 2. Every time you close a

  • SharePoint Audit Trimming

    Hi All, i had a very huge AuditData table in my Content Database. There were more than 100 M records. I had deleted those. And disable all type of Loggin by setting in Configure Audit Settings in Site Collection. But if i check in AuditData in Conten