Almost done with my proxyserver

Hi folks
So I am writing a proxy server, and I've gotten it to a pretty good point. I've got http, forms, downloads, video etc working. So I'd say at least 93% working.
My problem is this:
When I go into the video section on cnn.com
video.cnn.com
It loads (or should load) a shockwave player that plays videos.
I am getting a whole bunch of FileNotFoundException's, with URLs like:
http://i.cdn.turner.com/xslo/cvp/player/cvp_$%7BplayerVersion%7D.swf?videoId=health/2010/09/28/am.cohen.hospital.choices.cnn&player=640x406_start_bvp&domId=cvp_1&playerWidth=640&playerHeight=406
or put another way
http://i.cdn.turner.com/xslo/cvp/player/cvp_${playerVersion}.swf?videoId=health/2010/09/28/am.cohen.hospital.choices.cnn&player=640x406_start_bvp&domId=cvp_1&playerWidth=640&playerHeight=406
I THINK that the ${playerVersion} must be a variable for the actual player version. I don't know why firefox is sending it back to me (the proxyserver) like this though. Shouldn't firefox take care of filling this in?
Like I said, everything else that I'm testing right now is working. I've tested flash, youtube plays fine... Any advice or thoughts on what may be going wrong and how to fix it?

So a little more info
I had another thought, and so I looked at the source code of the page. Sure enough, none of the video links on cnn video are in the source code - the entire thing works through java script, which it seems is downloading the list of links and then requesting back for the videos.
I did a search for the playerVersion variable in all of the associated pages, and it is defined in this file: http://i.cdn.turner.com/cnn/.element/js/3.0/video/cvp.js?id=20100923b
So I now believe that I have a race condition, and that this file hasn't been run by the time that the video calls are being made.
Is there any way to debug javascript going through a (firefox) web browser?
Any thoughts on what I could have done to create the race condition?

Similar Messages

  • Almost done with program, just a little help please

    I am almost done with a program but I just need to have the planet which is _ball be painted on the screen.  I am making a planet that orbits a sun, it all works but the planet is not painted on the screen, but I used a fill method.  Can you guys help?
    public class MovingBall extends SmartEllipse
        int X0 = 100, Y0 = 100;
        double X2, Y2;
        double r = 10;
        double a = 0;
        double da = .04;
        double ecc = 1;
        double TWOPI = 2 * Math.PI;
        private javax.swing.JPanel _panel;
        public MovingBall (java.awt.Color aColor, javax.swing.JPanel aPanel)
         super(aColor);
         _panel = aPanel;
         X2 = X0 + r * Math.cos(a);
         Y2 = Y0 + r * Math.sin(a);
         this.setLocation(X2, Y2);
        public void move()
         a = a + da;
         a = a % TWOPI;
         X2 = X0 + r * ecc * Math.sin(a);
         Y2 = Y0 + r * ecc * Math.sin(a);
         this.setLocation (X2, Y2);
        public boolean inFront()
         return (a <= Math.PI);
        public void SetCircle(int x, int y)
         X0 = x;
         Y0 = y;
         //ecc = 1.0 - (double)pct/100;
        public void setAngleIncrement(double inc)
            da = inc;
        public void setCenter(double g, double s)
    public class MovingBallPanel extends javax.swing.JPanel implements Mover, Controller
        private final int INIT_X = 250;
        private final int INIT_Y = 200;
        private SmartEllipse _sun;
        private Sky _sky;
        private final int SUN_DIAMETER = 60;
        private MovingBall _ball;
        private final int PLANET_DIAMETER = 35;
        private final int ORBIT_DIAMETER = 185;
        int _da = 1;
        int _ecc = 1;
        private final int INTERVAL = 100;
        private MoveTimer _timer;
        public MovingBallPanel()
         super();
         this.setBackground(java.awt.Color.BLACK);
         _sun = new SmartEllipse(java.awt.Color.YELLOW);
         _sun.setSize(SUN_DIAMETER, SUN_DIAMETER);
         _sun.setLocation(INIT_X - SUN_DIAMETER/2, INIT_Y - SUN_DIAMETER/2);
         _sky = new Sky();
         _ball = new MovingBall(java.awt.Color.RED, this);
         _ball.setCenter((INIT_X - PLANET_DIAMETER)/2, (INIT_Y - PLANET_DIAMETER)/2);
         _ball.setAngleIncrement(_da);     
         _timer = new MoveTimer(INTERVAL, this);
         _timer.start();
        public void move()
            _ball.move();
            this.repaint();
        public void go (boolean g)
         if (g) _ball.setAngleIncrement(_da);
            else _ball.setAngleIncrement(0);
        public void setSpeed(int degrees)
         _da = 2 * degrees;
         _ball.setAngleIncrement(_da);
        public void setEccentricity(int pct)
         _ecc = pct;
         //_ball.setEccentricity(_ecc);
        public void paintComponent(java.awt.Graphics aBrush)
         super.paintComponent (aBrush);
         java.awt.Graphics2D betterBrush = (java.awt.Graphics2D) aBrush;
         _sky.paintSky(betterBrush);
         _sun.draw(betterBrush);
         _sun.fill(betterBrush);
         _ball.draw(betterBrush);
         _ball.fill(betterBrush);
    public class PlanetApp extends javax.swing.JFrame
        ControlPanel _controlPanel;
        MovingBallPanel _movingBallPanel;
        public PlanetApp (String title)
         super(title);
         this.setSize(600,500);
         this.setBackground(java.awt.Color.BLACK);
         this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
         _movingBallPanel = new MovingBallPanel();
         _controlPanel = new ControlPanel(_movingBallPanel);
         this.add(_movingBallPanel, java.awt.BorderLayout.CENTER);
         this.add(_controlPanel, java.awt.BorderLayout.SOUTH);
         this.setVisible(true);
        public static void main (String [] args)
         PlanetApp app =  new PlanetApp("Lab 5");
    public class SmartEllipse extends java.awt.geom.Ellipse2D.Double {
        private java.awt.Color _borderColor, _fillColor;  // attributes
        private int _rotation;
        private final int STROKE_WIDTH = 2;
        public SmartEllipse(java.awt.Color aColor){
         _borderColor = aColor;
         _fillColor = aColor;    // solid color to start
         _rotation = 0;         // no rotation for now
        // methods not provided by Java
        public void setBorderColor (java.awt.Color aColor) {
         _borderColor = aColor;
        public void setFillColor (java.awt.Color aColor) {
         _fillColor = aColor;
        public void setRotation (int aRotation) {
         _rotation = aRotation;
        // more readable versions of methods provided by Java
        public void setLocation (double x, double y) {
         this.setFrame (x, y, this.getWidth(),
                     this.getHeight());
        public void setSize (int aWidth, int aHeight) {
         this.setFrame(this.getX(), this.getY(),
                    aWidth, aHeight);
        public void move (int aChangeInX, int aChangeInY) {
         this.setFrame((int)this.getX()+aChangeInX,
                    (int)this.getY()+aChangeInY,
                    this.getWidth(),
                    this.getHeight());
        public void fill (java.awt.Graphics2D aBetterBrush){
         java.awt.Color savedColor = aBetterBrush.getColor();
         aBetterBrush.setColor(_fillColor);
         aBetterBrush.fill(this); // paint a solid ellipse
         aBetterBrush.setColor(savedColor);
        public void draw (java.awt.Graphics2D aBrush) {
         java.awt.Color savedColor = aBrush.getColor();
         aBrush.setColor(_borderColor);
         java.awt.Stroke savedStroke = aBrush.getStroke();
         aBrush.setStroke(new java.awt.BasicStroke(STROKE_WIDTH));
         aBrush.draw(this);
         aBrush.setStroke(savedStroke);
         aBrush.setColor(savedColor);
    }

    ?

  • OK, I am almost done with your Adobe CC. 3-4 agents have failed to fix the CC deskTop!

    OK, I am almost done with your Adobe CC. It has been over three+ months now and your Support simply REFUSES to help me fix my issue. I am not able to use or download the software and your are charging me every month.  What kind of crap is that?? I am now very strongly considering canceling my account and demanding a full refund.  Read my notes  on the account!!  You have 48 Hours!  After that I am escalating this to the Adobe Board of Directors and to the Digital Media Reviews that this new platform sucks.  Please give back the old platform!! 
    You have all my contact inforamtion, please do your job or I will ask that some one else doest it!
    Am I pissed off?? What do you think???
    Signed: Disgruntled!

    Hi Jaime O.
    We are sorry for the inconvenience you have been facing. I have reviewed the case notes from your account. I have sent you an email and will contact you on Monday and will try to get the issue fixed.
    Regards,
    Romit Sinha

  • Ugggh - am almost done with Adobe!

    We are photo enthusiasts and have been faithful Abobe users for a long time (full version on my husbands PC and elements on mine ... we share ;-)  )
    While I think the photo editing tools are pretty great, I think Organizer leaves a lot to be desired. In fact, with each release there seems to be 'upgrades' that destroy work previously done to keep our massive photo library organized.
    My first big (HUGE) complaint is the date view that changed with version 11. I loved the traditional calendar view where you could scroll through the weeks, months, and even years to quickly find pictures - I used this feature all of the time! But Adobe had to go and change it to an 'Events' tab ... I've lost all of my notes (that I spent hours inputting I might add) and the 'Smart' events option is flaky at best - sometimes it works, but most times it doesn't.  When I view a group of photos Photoshop has 'smartly' grouped together, it almost never refreshes properly so if I try to view a different group of photos I get wierd results, sometimes with results that include pictures that aren't in either group!!  What were you thinking Abobe - if it ain't broke, don't fix it because this definitely wasn't an improvement!!
    My second complaint is the Mark Face/People feature. I know many others have complained about this and I agree, this feature doesn't work the way it should and I feel it's a waste of time to even tag my photos. But today I thought I would give it another try and as usual, it's not working. When I click the 'mark face' button, some screen pops up for a second then disappears and nothing happens. On the rare occasion Photoshop prompts me by asking 'Who is this?', I'll try to enter a name only to have it disappear as soon as I do. I guess maybe my expectations are too high for this software ... I mean come on, who really wants organized photos anyway???
    You can do better Adobe!! I am wishful that these things might be updated with Version 13, but can't say I'm overly optimistic!

    Thank you for your response Brett.
    With respect to the People recognition issue, I did as you suggested and renamed breezesession.dat to breezesession.old. Unfortunately it didn't work. I noticed that you gave instructions for Windows XP, Vista, and 7.  Does it matter that I am running Windows 8.1? Do I need to do anything different other than renaming the breezesession file?
    To answer your question about my SmartEvents issue .... I opened a set of photos grouped together by Elements. I then clicked the 'Back' button and tried to open a second set of photos. I got the same results as if I had clicked on the first group of photos again (almost like it didn't 'refresh'). In addition, the back button was missing. I opened an individual picture then hit the 'Grid' button and the 'Back' button reappeared. I closed the software and restarted it but had the same issue again.
    Last night I uninstalled Photoshop 12 and reinstalled it wondering if it would fix these problems. The face recognition still isn't working however the events tab now is.  But I still REALLY miss the calendar view from Version 10 - I don't find the events tab to be very user friendly or the calendar as helpful as it used to be. I can't tell you how many times I have needed to find a photo and loved that I could scroll back through the calendar and see at a glance the photos I took on each date for an entire month! Now I'm forced to drill down by year, then month, then click on the individual day to see what photos I took that day. I'm finding that I now use the media tab and the timeline bar when I need to find pictures but it's also cumbersome given that I have over 36,000 photos in my database. I miss the calendar so much I'm considering running version 10 of organizer and version 12 of editor so that I can have the best of both worlds (or perhaps seek out alternative software). Is there any chance the calendar will come back in Version 13???
    Thanks again for any assistance you can provide!

  • I tried to update my phone today, it said it was almost done updating when my computer said that something went wrong. so i clicked okay and it stopped on my computer. but my phone is now frozen to the itunes   usb screen

    I have the iphone 4, and an hp laptop.
    I tried to download the new update for my phone, it was loading for about half an hour and seemed almost done. Until it said an error had an occured. So i unplugged my phone, and clicked okay. I restarted my phone but repeatedly it comes up with the itunes logo and the usb cord picture.
    How can I just get my phone back to normal?

    your phone crashed,check this one
    http://support.apple.com/kb/HT1808
    http://support.apple.com/kb/TS1495

  • Homework help--almost done but don't know how my class and main work?

    hello, i'm doing a project for my intro to java class. i'm almost done but i'm very confused on making my main and class work. the counter for my class slotMachine keeps resetting after 2 increments. also i don't not know how to make my quarters in the main receive a pay out from my class. Please guide me to understand what i have to do to solve this problem...I have listed my question page and my class and main of what i have done so far. Thank you .I will really appreciate the help.
    Objective: Create a class in Java, make instances of that class. Call methods that solve a particular problem Consider the difference between procedural and object-oriented programming for the same problem.
    Program Purpose:
    Find out how long it will take Martha to lose all of her money playing 3 instances of the slot machine class.
    Specification: Martha in Vegas
    Martha takes a jar of quarters to the casino with the intention of becoming rich. She plays three machines in turn. Unknown to her, the machines are entirely predictable. Each play costs one quarter. The first machine pays 30 quarters every 35th time it is played; the second machine pays 60 quarters every 100th time it is played; the third pays 11 quarters every 10th time it is played. (If she played the 3rd machine only she would be a winner.)
    Your program should take as input the number of quarters in Martha's jar (there will be at least one and fewer than 1000), and the number of times each machine has been played since it last paid.
    Your program should output the number of times Martha plays until she goes broke.
    Sample Session. User input is in italics
    How many quarters does Martha have in the jar?
    48
    How many times has the first machine been played since playing out?
    30
    How many times has the second machine been played since paying out?
    10
    How many times has the third machine been played since paying out?
    9
    Martha plays XXX times
    Specific requirements: You must solve this using an object-oriented approach. Create a class called SlotMachine. Think about: What does a SlotMachine Have? What does it do? What information does it maintain? This is the state and behavior of the object. Each instance of this class will represent a single slot machine. Don�t put anything in the class unless it �belongs� to a single machine.
    In the main method, create 3 instances of the slot machine to solve the problem in the spec. Play the machines in a loop.
    ========================================================================
    my class
    ========================================================================
    public class SlotMachine{
    private int payOut;
    private int playLimit;
    private int counter;
    public SlotMachine (int payOut, int playLimit){
    this.payOut = payOut;
    this.playLimit = playLimit;
    public void setPayOut (int payOut){
    this.payOut = payOut;
    public int getPayOut(){
    return payOut;
    public void setPlayLimit (int playLimit){
    this.playLimit = playLimit;
    public int getPlayLimit(){
    return playLimit;
    public void slotCounter(){
    counter = SavitchIn.readLineInt();
    public int game(){
    counter++;
    if (counter == playLimit){
    counter = 0;
    return payOut - 1;
    return -1; // the game method was edited by my professor but i'm still confused to make it work
    =======================================================================
    my main
    =======================================================================     
    public class Gametesting{
    public static void main(String[]args){
    SlotMachine firstSlotMachine = new SlotMachine (2,3);
    SlotMachine secondSlotMachine = new SlotMachine (2,3);
    SlotMachine thirdSlotMachine = new SlotMachine (2,2);     
    int quarters;
    int playerCount = 0;
    System.out.println("How many quarters does Martha have in the jar?");
    quarters = SavitchIn.readLineInt();
    System.out.println("How many times has the first machine been played since paying out?");
    firstSlotMachine.slotCounter();
    System.out.println("How many times has the second machine been played since paying out?");
    secondSlotMachine.slotCounter();
    System.out.println("How many times has the third machine been played since paying out?");
    thirdSlotMachine.slotCounter();
    while (quarters != 0){
    playerCount++;
    quarters--;
    firstSlotMachine.game();
    if (quarters != 0){
    playerCount++;
    quarters--;
    secondSlotMachine.game();
    if (quarters != 0){
    playerCount++;
    quarters--;
    thirdSlotMachine.game();
    System.out.println("Martha plays " + playerCount + " times");

    The main problem is that you made the first and second slot machine to pay out 2 quarters after 3 games and the third machine pay out two quarters after two games. That is not what your assignment specified.
    SlotMachine firstSlotMachine = new SlotMachine (2,3);
    SlotMachine secondSlotMachine = new SlotMachine (2,3);
    SlotMachine thirdSlotMachine = new SlotMachine (2,2);
    The second problem is that you never add the payout of a machine to Martha's number of quarters.
    Look carefully at the way your professor implemented the game() method. If you think about it, what it returns is the net "gain" from playing a game. On jackpot it returns payOut -1 (jackpot less the one quarter Martha had to pay for the game), otherwise it returns -1 (Martha spends one quarter and wins nothing).
    So what you can do is simply add the returned value to the number of quarters in the jar -
    quarters = <machine>.game();
    instead of quarters--.

  • HT4623 when i trying to update my iphone 5 to latest ios 7.04 always appeared error when the update almost done about 20 to 30 minutes

    when i trying to update my iphone 5 to latest ios 7.04 always appeared error when the update almost done about 20 to 30 minutes

    Hello micojen1920
    If you are having an issue with updating your iPhone, try it through a different method like in iTunes or through software update on your iPhone in settings. If that does not work then follow the steps in the article below to force a restore on your iPhone. Make sure to back up first and you can always restore from that back up once your iPhone is up to date. The second article will assist you with the back up and restore process.
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    iOS: How to back up and restore your content
    http://support.apple.com/kb/ht1766
    Regards,
    -Norm G.

  • Problems with my storage is almost full with OTHER

    I have a mac book pro about 2011, I have upgraded to lion and wanting to upgrade to Maverick. My storage however is almost full with, what apple calls other. What is Other and how can I either cleanup or find out what it is? I cannot seem to get rid of it and it keeps climbing. My music is about 4gb, Movies about 55gb, apps about 7gb, photos 15gb, and my back is sent to and external. NEED SOME HELP.
    Did I click on some website that is giving me some virus.
    Any help is appreicated

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • Can't update, get "Photoshop 13.1.2 for Creative Cloud Done with Errors. Error Code: U44M1P6" Help!

    Have tried several times to Update Photoshop Mac CS6, always get "
    Photoshop 13.1.2 for Creative Cloud
    Done with Errors. Error Code: U44M1P6"
    What gives and how can I fix?

    In this case since it is a feature bearing update for Creative Cloud Bpolatty will need to download the update through the Adobe Application Manager/
    Bpolatty I would recommend reviewing the installation log file for the Photoshop 13.1.2 update.  You can find details on how to locate and interpret the log file at Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html.

  • How do I release memory when done with a large Image?

    I've got a sample program here. Enter a filename of a .jpg file, click the button and it will load and display a thumbnail of it. However memory is not released so repeatedly clicking the button will let you watch the memory use grow and grow. What should be done in the code to release the large original image once the thumbnail is obtained? Here's the class:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.Iterator;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import javax.swing.*;
    public class ImageMemoryLeak extends JFrame implements ActionListener {
         private JLabel thumbnail = null;
         private JTextField tf = null;
         private JButton button = null;
         public static void main(String[] args) {
              ImageMemoryLeak leaker = new ImageMemoryLeak();
              try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); }
              catch (Exception ex) { }
              leaker.showDialog();
         private void showDialog() {
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setBounds(100,100,200,200);
              setBackground(new Color(255,255,255));
              Container cont = getContentPane();
              cont.setBackground(Color.lightGray);
              cont.setLayout(new FlowLayout());
              thumbnail = new JLabel("thumbnail here");      
              cont.add(thumbnail);
              tf = new JTextField("type filename here");     
              cont.add(tf);
              button = new JButton("Load Image");
              button.addActionListener(this);
              cont.add(button);
              pack();
              setVisible(true);
         public void actionPerformed(ActionEvent e) {
              if (e.getSource() == button) {
                   String fname = tf.getText();
                   File f = new File(fname);
                   if (f.exists()) {                    
                        try {
                             // This is where a file is loaded and thumbnail created
                             Iterator<ImageReader> iter = ImageIO.getImageReadersByFormatName("jpeg");
                             ImageReader imgrdr = iter.next();
                             ImageInputStream iis = ImageIO.createImageInputStream(f);     
                             imgrdr.setInput(iis, true);
                             ImageReadParam param = imgrdr.getDefaultReadParam();
                             BufferedImage fullSizeImage = imgrdr.read(0, param);
                             imgrdr.dispose();     // is this enough?     
                             iis.close();               
                             int thWidth = 150;
                             int thHeight = 150;
                             int w = fullSizeImage.getWidth(null);
                             int h = fullSizeImage.getHeight(null);
                             double ratio = (double)w/(double)h;
                             if (w>h) thHeight = (int)((double)thHeight /ratio);
                             else if (w<h) thWidth = (int)((double)thWidth * ratio);
                             BufferedImage thumbImage = new BufferedImage(thWidth, thHeight, BufferedImage.TYPE_INT_RGB);
                             Graphics2D graphics2D = thumbImage.createGraphics();
                             graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                             RenderingHints.VALUE_INTERPOLATION_BILINEAR);
                             graphics2D.drawImage(fullSizeImage, 0, 0, thWidth, thHeight, null);
                             // done with fullSizeImage now - how to release it though?
                             fullSizeImage.flush();     // doesn't seem to do the trick
                             ImageIcon oldicon = (ImageIcon)thumbnail.getIcon();
                             if (oldicon != null) oldicon.getImage().flush();
                             ImageIcon icon = new ImageIcon(thumbImage);
                             thumbnail.setIcon(icon);
                             thumbnail.setText("");
                             pack();
                        } catch (IOException e1) {
                             e1.printStackTrace();
                   else {
                        thumbnail.setText("file not found");
    }

    lecisco wrote:
    AndrewThompson64 wrote:
    lecisco wrote:
    I don't mind having GC getting to it but it's not doing so now. .. Isn't it? GC is only called when the JRE feels it is necessary. Definitive evidence of a memory leak is generally revealed by an OutOfMemoryError. Does the code throw OOMEs?Excellent point. I tried loading over and over to force an OOME. I found that after the memory footprint grew to about 750mb, it reset down to about 130mb again, so it seems that GC does eventually kick in. Perhaps what I have is fine.
    That question brings me to the code sample. Typing an image file name in a text field is soooo 1980s. It would take a long time and much hard work on the part of the person testing it, in order to get to an OOME.In my actual application I'm using drag-and-drop to specify the image. The text field was just to simplify the code sample. How you get the file location is not relevant for the question - it's how the resources are released. If you're saying my code is fine regarding and shouldn't be holding onto any resources, that's great. I'm not saying that. So far I've not looked closely at the code, and am no expert on resource caching in any case.
    ..I am looking to confirm I'm following best practices regarding image resources.Good show. There is too much rubbish code out there.
    ..With the code sample, you just have to specify one .jpg file and repeatedly click the button to see the memory grow, so there's no burden to type a new file each time.Oh right, my bad. I had presumed it required a different image each time. Still (grumbles) a file chooser to select the image file would not have gone astray - for us lazy types. ;)

  • In Mail with Snow Leopard you could number your e-mails. Can this be done with Lion?

    In Mail with Snow Leopard you could number your e-mails. Can this be done with Lion?

    If you're referring to desktop icons, right click on the desktop > Show view options > check "show item information".

  • Is there a way to have Siri resume an app (i.e. GPS) after you're done with it?

    Hey guys,
    Long time lurker, first time posting.  Please forgive me if this has been asked, but I have not found anything related to this question.
    I use a GPS app all the time when I am in my car.  I use a bluetooth headset and I love the fact that I don't need to touch/look at the phone to complete certain tasks.
    What I do not like is that while I'm using the GPS app, I need to send a text/call/whatever, and I activate Siri.  The screen then changes to the Siri conversation screen.  When I'm done with Siri, the screen stays there and does not switch back to the GPS.  This requires me to look and reach over to press the Home button, and sometimes re-select the GPS app again. This can be very distracting as I drive manual as well.
    Is there a command or something I can say to have Siri resume the previously open app?
    I have tried "Open previous app", "Resume app", and a bunch of other similar commands.  None worked.  Siri just says that it can't complete that task.
    Any help or solution is greatly appreciated!
    Cheers.

    I'd also like this to be the norm. Maybe it needs an entry for the SatNav app you use for siri in some config somewhere, as the other apps (phone, etc) are "built in". The siri could know to revert to that app.
    Regards

  • Ok I'm Done With This Internet

    I'm done with Time Warner and I'm so far past the point of enraged.
    Well, I've had Time Warner Cable (Road Runner) in 3 different locations. Let me start off by saying this is the Time Warner Midwest Ohio area (Dayton). I live in the city of Urbana though.
    Once in Fort Hood, Texas
    Once in North Lewisburg, Ohio
    and now here in Urbana, Ohio.
    The first two was decent since cable wasn't really popular and it was kind of new. Time Warner offered amazing support and instantly loading web pages and song downloads were just the highlight of my year once it was installed. (Anyone who's ever had to use Dial up before will understand why). Well, let's fast forward to the year 2006 when I installed Time Warner at this location (Urbana, Ohio). It has been nothing but a nightmare to say the least about this company.
    It started out small like every week there would be a couple disconnects or speeds would randomly slow down.. but w/e only a couple of times a week.. no big deal, but we still called out the customer service reps and oh boy aren't they a treat. Not only do they have no idea what they're doing, in the past 3 years the only thing they have done is replaced the modem and router, over and over and over again.
    Well, in the past few months it's been hell. ALL DAY the internet just slows down to a halt and won't load web pages or any kind of activity what so ever for about 30 seconds then it resumes to normal. We get at least 2 disconnects a day and MAYBE it kicks back on that day/night. Some times (we have several computers hooked up through a router) it will just randomly pick a computer and won't let it connect. There are no firewalls blocking and connections on any computer, it's just completely random.
    I'm so far past angry and I'm done calling out customer service reps who have absolutely no idea what they're talking about or doing. The last time they came here, they just opened up speedtest and ran that a few times and said they couldn't find any problems. Then they logged into some Modem interface and they couldn't read any of the terms on the page so they had to call their supervisor.. it's just.. good god.. The support for this company in this area is beyond wretched and a horrible abomination.
    I've heard nothing but amazing things about Verizon Fios Internet.
    Not to mention all of the equipment they have given us is from the year 1999-2000. Yes.. every single router/modem/piece of hardware they've given us has the sticker on it still and it's usually labeled from the year 2000. Thank god, they're staying on top of new hardware in this area.
    Not to mention the upload speed is GOD AWFUL... I'm talking around .20kb/s Sharing any kind of files what so ever is a complete nightmare and takes up all the latency just even running file sharing programs and makes the service horrendously slow to the point you can't even browse the web.
    Is Fios worth it? I have 4 computers in this house (my desktop, my roomies desktop and laptop and my landlord's desktop) We'd be all connected through wired (a hub) so I'd like to ask you all if Fios is worth it. I've heard tons of people praising Verizon and loving the service so I figured I would come here and ask the community to see what they think.
    Sorry for my rant.. I feel better now.
    Solved!
    Go to Solution.

    We found the following address in our records based upon the address you entered.
    Please confirm that this is your address.
    We found more than one address matching the address you provided.  Please select the correct address from the list below or select the last option to re-enter your address.
    {edited for privacy}
    That's the message I'm getting when I check for availablity for Fios Internet. I live on that street but that's not my address.
    Also to one of the replies: If that's true and Fios isn't in Ohio.. I'll just cry. That means i'm stuck with Time Warner.

  • Is there a way to select MULTIPLE tabs and then copy ALL of the the URLs and titles/or URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; However, I prefer to use a Firefox feature rather than download an add on. Thanks.

    Currently, I can copy ONE tab's url and nothing else (not its name). Or I can bookmark all tabs that are open. However, I'd like to have the ability to select multiple tabs and then copy ALL of the the URLs AND their titles/or copy ALL of the URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; when I download the add on, I get a message saying that using the add on will disable Firefox's tab features. I prefer to use Firefox features rather than download and use an add on. Is there a way to do this without an add on?

    Hi LRagsdale517,
    You should definitely be able to upload multiple files by Shift-clicking or Ctrl-clicking the files you want to upload. Just to make sure you don't have an old version of the service cached, please clear the browser cache and then log in to https://cloud.acrobat.com/files. After clicking the File Upload icon in the upper-right corner, you should be able so select multiple files for upload.
    Please let us know how it goes.
    Best,
    Sara

  • I am done with Verizon for their inability to update Android in a timely manner. When my contract is up, after 10 years, I am gone.

    Verizon,
    Nobody.. and I mean NOBODY is buying your crap. You don't update to the latest software in a timely manner. The entire planet has the KitKat update for Android and you don't under the guise of better experience. That is crap, everyone else can do it but you, you are inept.
    Additionally, you are the most expensive by far and the guise of biggest network. I really don't care about the biggest network, I use a very small percentage of it so this is no excuse.  AND if you are the biggest how come EVERY carrier can beat you on price and get updates out faster?
    Your new tiered plans "Family Share" crap.
    I do how you still charge me for data, voice, and text.. even though at the end of the day these are all just data packets across your network. I love being charged three times for the same service though.
    You want to really be the best, then change your ways.. but I am done waiting around for you.. this contract ends and I am gone.

    After 20 yes TWENTY YEARS being with Verizon I to am done with their cell phone business. I have had nothing but problems with my "new" Droid, which I was "steered" to by a tech who told me what I should have not what I chose, my weakness was to still trust the employee had the best interest of their customer at heart. Brewhahaha! Boy what a error that was on MY part. I got a phone that has been defective from the moment I turned it ON.
    I first had home service with Verizon for many years...then wifi....then the bundle. Great, all I can say is as this company has grown, they have fallen apart on their customer service and their policies. Their nothing more than yet another CORPORATE mentality company whose bottom line is PROFIT.
    My droid arrived, it would not hold a charge...it would not always take a preference I chose...it would change things on preferences on it's own (wondering if my phone is like that car in the movie "CHRISTINE")  and was encouraged to keep using it, I just either didn't understand the "smart phone" ...or my age was allowing them to think I could no longer learn to use anything other than a rotary phone.  One tech actually told me to take the battery out and reset the phone, hmmm...sure right and ruin the phone? RIGHT...who trains these people???
    Verizon is no longer any resemblance of the once good company it just to be.
    Today my day was horrible. (your just lucky I told blab on about the last three months dealing with them!)
    Having just spent the majority of my day being transffered from one department to the next (seems they now have to transfer you if there is something as simple as adding an e mail to the order that was cancelled in error by the way to replace the lousy dysfunctional Droid I got) no one person can do what ever your account needs. Half way through my completely messed up day, I got so tired of this syrupy fake responses telling me to have a wonderful day and enjoy the rest of my day..and it was a pleasure to serve me.... after way to many transfers to other departments...they started sounding like they were recorded bots...or flight attendants. I just had to ask them if they served peanuts and cold drinks. HARD LIQUOR?
    So now I am waiting for my "reburbished" droid. (again)..checked on why I had not gotten it...it was cancelled flagged by "fraud". WHATTT?  Fourth time I have ordered something and this has happened, and no e mail asking me to contact them. I live in a senior gated community and they are trying to tell me "someone in your gated community attempted to commit fraud" so MY order gets flagged. (half the seniors in this gated community are half dead the others are either in Palm Springs or traveling...and the one who are slightly mobile...might not remember how to even get to the mail room .and back to their house..granted UPS requires I SIGN for the phone...but impossible since they flagged and did not send the phone out. So, here I sit, wondering after three months of dealing with these (not so funny) clowns and gain absolutely NO satisfaction, except to say....adios...when my contract ends.  AT&T hopefully is better, but who knows..this phone situation may be the death of me yet..and in the end VERIZON will not longer have to waste their time or mine transferring me to try to get a 1. working phone  2.  my order actually processed correctly  3. have to re-educate their techs.
    I no longer TRUST Verizon, I no longer believe they have the interest of their customers at heart. (what heart?)  and about the only thing I don't understand is they sell me a phone, then a package to buy time...but also $30.00 a month  fee to connect to their lines? Shouldn't that rather come with the package deal??
    Signed..done with Verizon squeezing me two ways to Sunday.  I just hope some other company  comes in with a plan to beat the socks off these top providers of cell services in the states...and I'd like to just sit back and watch the huge exodus  of people leaving. The pickens are ripe to do just that.

Maybe you are looking for

  • MSI KT3 Ultra-Aru (KT333) and Duron Applebred??

    Hi, welcome,willkommen,witajcie,dobry den, ... (I know this word in 11 languages) I have MSI KT3 Ultra-Aru (KT333) and J want to buy AMD Duron 1800MHz(Applebred). Does my motherboard support that processor?? It will work without problems??

  • Accessing Flash Video Encoder Programmatically

    At the moment I am working on a batch program that will take video files, and /encode them into FLVs. I would like to do this in a programmatic (command line way), so that I can can embed this into a nightly batch process. Can the Flash Video Encoder

  • Configuring Oracle 9i AS to use Java 1.4

    Hi All, Please help me in configuring Oracle 9i Application Server Release 2 to use Java 1.4 Version instead of 1.3 version.

  • Error GR493 report painter/writer with special ledger

    Hi , I am trying to create a report painter using a table of a special ledger. The table is the one for 'real item'. The following error appears: 'Table ZIFRSA is not installed in Report Writer. Message no. GR493 Diagnosis The Report Writer can only

  • Updated iTunes shows white on black page view

    Just updated iTunes recently and on first use all items on page are on black background. Sidebar is white text on black background. View options pop up shows the same. Can't really see any text on pop up screens. Icons hard to see too. Haven't found