Speed up the URL and Time out

I have a database of links I use a statment to read of them pass them to a URL and read the site to extract links from there, if it the URL is broken it takes me 10 minutes to go to the next one, I have 200 odd links any help as to speed this up...
it took me a day to finish up the lins

hey Spieler you said
You could use multiple threads. This way you can still
work on url's while one or the other thread is waiting
for a respons
regards
Spielerhow do I go about that.
can you mail me an answer
I use
Statment stmt = con.createStatment("SELECT * FROM LinkTable");
ResultSet rs = stmt.executeQuery();
while(rs.next())
String str = rs.getString(2);
URLConnection conn = new URL(str).openConnection();
Reader rd = new InputStreamReader(conn.getInputStream());
EditorKit kit = new HTMLEditorKit();
Document doc = kit.createDefaultDocument();
doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
// Parse the HTML.
kit.read(rd, doc, 0);
// Iterate through the elements of the HTML document.
ElementIterator it = new ElementIterator(doc);
javax.swing.text.Element elem;
while ((elem = it.next()) != null)
     int cnt = 0;
     st1 = new String();
                              SimpleAttributeSet s = (SimpleAttributeSet)elem.getAttributes().getAttribute(HTML.Tag.A);
if (s != null)
st1 = s.getAttribute(HTML.Attribute.HREF).toString();
System.out.println(st1);

Similar Messages

  • New apps won't install, just bouce in the dock and time out

    Was wondering if anyone could help me out with this. I'm in Japan and apple support in English seems to be manned by one guy whose only solution to any problem is to backup everything and reinstall. Getting kind of frustrated.
    Lately, I am unable to install new software I download from the web. It downloads the package, loads the disc image and if I click on install.app , the icon bounces in the dock for about minute then times out and I have to force quit it. If I install an app that just requires dragging the app into the app folder, when I try to open it, the same thing happens. I can't pinpoint when this started or what might have caused it but the last app I was able to successfully download and install was a trial version of Bento. I've tried about 10 different apps and its the same problem with each.
    Any ideas what might be causing this? Help is very much appreciated!!

    Thanks Daniel!
    Onyx worked. Though I'm not sure what part of it worked. I had to try several different cleanings and whatnot. Seems like the problem might have been Desktoptopia. I remember now, when I installed that software, these problems came up. Now, everytime I reboot, I get a "are you sure you want to open this file downloaded from the internet" box for desktoptopia even though I can find no trace of the app on my computer anymore. Very strange.
    Anyway, at least apps are installing again. Thanks!

  • I have Problem uploading photos to craigslist. It says it has a problem communicating with the server and times out. It works in explorer but not Firefox and I just recently downloaded the new version of firefox. Can you be of any help?

    Photos will not upload and the server times out.

    Well, two thoughts.
    The battery has completely discharged and will take overnight to recharge, so don't expect much in an hour.
    The battery has deep discharged and is now dead. It will never recharge and should be replaced.
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.
    The flat fee for a battery exchange is, I believe, $99.00 USD.

  • My firefox will allow me to open a page then it gets stuck on the second page and times out--how do I fix this. I have checked the sites on Explorer -it works

    It started with the second page not being able to be displayed
    example it would go to yahoo and I would sign in but the next page would just spin and time out
    Now it won't even go to the first page.
    Firefox will not let me go into the options to change cache.
    I am trying explorer and it works.
    Help

    This is a page within the Yahoo site? When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In that dialog, you can individually remove your yahoo.com cookies.
    Then try reloading the page. Does that help?

  • How do you edit out the date and time stamp from a photo

    How do you edit out the date and time stamp from a photo

    You can blur it out with retouch
    The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
    Regards
    Léonie

  • I can't download update 5.0.1 and have disabled all security measures and the download still times out shortly after beginning the download.  All other downloads are successful so I know the problem is not in the computer.  Can anyone help?

    Can't download update 5.0.1 to my iPad2.  I disabled all security items in fact have deleted them from computer, but the download still times out advising check settings but all is set right?  Can any one help with this matter?

    I'm still experiencing this problem.  I went to settings, general, software and it says Install now.  But when I try, I get an error message. 

  • When I try to open certain slide shows, my computer gets the spinning wheel and times out. Other slide shows open fine. What am I doing wrong?

    When I try to open certain slide shows, my computer gets the spinning wheel and times out. Other slide shows open fine. What am I doing wrong?

    Hard to say but most likely you are not doing anything wrong but have some library corruption
    What version of iPhoto? Of the OS?
    backup your iphoto library, depress the command and option keys, launch iPhoto and rebuild your database
    LN

  • How do I find out the date and time a picture was taken on my Ipad?

    How do I find out the date and time a picture was taken on my Ipad?

    Photo Manager Pro
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%202/7a2b3650710f4bded81 ab75dda6a3ee5.jpg

  • How do I speed up the email refresh time on my Mac ? iPad and IPhone almost a minute or more faster using same connection?

    How do I speed up the email refresh time on my MAC?

    Hi ToddSATX, 
    Thank you for contributing to the Apple Support Communities. 
    It sounds like you receive email a few minutes faster on your iOS devices than on your Mac. This may be normal behavior, although there are a few settings that you can check if the delay is longer than that. 
    If you have a portable Mac, you may notice an improvement when it is connected to the power adapter. You can also select "Use IDLE command if the server supports it" from Preferences > Accounts > Advanced in the Mail menu (at the top left of the screen).
    You can find this information here:
    Mail (Yosemite): General preferences
    Check for new messages
    When Mail gets new messages from the mail server. By default, the option is set to Automatically (Mail varies how often it gets messages, based on whether your Mac is plugged into an electrical outlet). 
    An IMAP account may get messages more frequently if the mail server supports the IDLE command; make sure the option to use it is selected in the account’s Advanced pane in Mail preferences. 
    If you set the option to Manually, click the Get Mail button  in the Mail toolbar to check for messages. (Whenever you click an IMAP or Exchange mailbox, it syncs with the server, and shows new messages.)
    Best Regards,
    Jeremy 

  • How do I speed up the start up time on my iMac?

    I have a mid 2010 iMac with the following specs:
    Processor:  3.2 GHz Intel Core i3
    Memory:  8 GB 1333 MHz DDR3
    Graphics:  ATI Radeon HD 5670 512 MB
    Software:  OS X 10.9.4 (13E28)
    Hard drive: 1TB of which almost 800GB is free
    I never had any problems with speed or startup time when running mountain lion (or whatever it was that came before Mavericks) but I stupidly upgraded to Mavericks before reading about all the bugs and now my computer is mind numbingly slow when I first turn it on.  It runs ok once it starts up but the start up process has gone form less than a minute, to turn the computer on and go make a cup of coffee and it's still chugging away when I come back.  I installed an extra 4gb of ram (it came from the factory with 4gb) but that only made a small difference.  I really dont want to erase and reinstall everything so I've tried adding ram, repairing permissions and doing a p ram restart.  Does anyone have any suggestions?

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console 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 Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter "BOOT_TIME" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Note the timestamps of the BOOT_TIME log messages, which refer to the times when the system was started. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged after the boot, during the time something abnormal was happening. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    For example, if the problem is a slow startup taking three minutes, post the messages timestamped within three minutes   after the boot time, not before. Please include the BOOT_TIME message at the beginning of the log extract—not at the end.
    If there are long runs of repeated messages, please post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A crash report has a name that begins with the name of the crashed process and ends in ".crash". A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent of each. The contents of the report will appear on the right. Use copy and paste to post the entirecontents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash or panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • How do I have photos in iPhoto display on their face the date and time?

    How do I have photos in iPhoto display on their face the date and time? Displaying in the camera shows this. When I check edit the info is there. How do I have that displayed on the face of the photo when I view it in iPhoto?

    How do I have photos in iPhoto display on their face
    the date and time? Displaying in the camera shows
    this. When I check edit the info is there. How do I
    have that displayed on the face of the photo when I
    view it in iPhoto?
    Hi! My name is Tom from San Diego, CA. I have the exact same question as you. That is, I would like to be able to print out a photo from iphoto with the date that picture was taken displayed on the face of it. In this way, someone looking at that picture in a photo album years later would know when it was taken. Did you ever find a method to print copies of photos out of iphoto with the date displayed on the print? Thanks for your help!

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • How to check the date and time when a material is blocked

    Hello,
       Please tell me how can i check the date and time when a material is blocked or unblocked.
    Regards,
    Priyanka

    Hi Pryianka,
    Are you speaking about blocked status of material master ('X-plant matl status' > MM03 > Basioc view 1; 'Plant-sp. matl status' > MM03 > MRP 1) or your problem is to find out the date when your material was booked into blocked state (stock category).
    If your problem is about mmr you can use the above mentioned MM04 (or MM03 > menu > Environment > Display changes).
    If your problem is to find out when your goods were posted to blocked stock you have to use MB51 + relevant movement types (e.g. 103, 344) + batch + etc. ()
    BR
    Csaba

  • Can this html code be changed to speed up the image load time?

    I found some html that creates a auto running slide show. I've got three images (small image sizes) but it is slow to start up when the page is first opened. http://web.me.com/phelpssculpture/Site/test.html this is the escaped code:
    <center><img id='imageholder' src='' ></img></center>
    <script type='text/javascript'>
    images = new Array();
    images.push('http://web.me.com/phelpssculpture/Docs/typewriterprpage.jpg');
    images.push('http://web.me.com/phelpssculpture/Docs/royalprpage.jpg');
    images.push('http://web.me.com/phelpssculpture/Docs/Lovetest.jpg');
    var image_index = 0;
    function rotateImage() {
    if (image_index == images.length - 1) { image_index = 0 } else { image_index++ }
    document.getElementById('imageholder').src = images[image_index];
    setInterval('rotateImage()', 5000);
    </script>
    I have a page: http://web.me.com/phelpssculpture/Site/Resume.html
    that has a rollover image (from OldToad) that has two images about the same file size and located in the same folder on my iDisk as the other slide show images but it seems to load instantly.
    this is the escaped code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    loadImage1 = new Image();
    loadImage1.src="http://web.me.com/phelpssculpture/Docs/typewriterprpage.jpg";
    staticImage1 = new Image();
    staticImage1.src="http://web.me.com/phelpssculpture/Docs/royalprpage.jpg";
    // End -->
    </script>
    <a href="http://web.mac.com/phelpssculpture/Site/royal.html" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
    <img name="image1" src="http://web.me.com/phelpssculpture/Docs/royalprpage.jpg" border=0></a>
    Does anyone know if it's possible to improve the html of the slideshow snippet to speed up the initial load time?
    Thanks, David

    Ethmoid:
    There are seven different pages: http://web.me.com/phelpssculpture/Site/movieroyal_davidphelps.html
    Each link is directed to a different page.
    I created the basic layout on one page and then duplicated the page six times.
    the links are in one text box ( that's why they're lined up well ) and each individual word is activated as a link. I changed the background color of the forward tab to match the color of the main shape and used the send forward or send backward command to get the tabs to look right on each page.
    The only problem with the words being in a single text box is that explorer doesn't render the spacing correctly and they fall off their respective tabs. When I get time I will put each word in it's own text box ( it's not that hard to align them ) so it will render properly in explorer.
    Sincerely, David Phelps

  • How can I preserve the date and time of photos when moving them from iPhone to iPhoto and then to other folders on my computer?

    In the past I’ve had no problem moving photos from my iPhone 4 into various folders on my computer while retaining their original date and time. I would import into iPhoto, then drag the photos from iPhoto into other folders via the Finder or Adobe Bridge (which is my principal image organizer). The original date and time of the photo would always travel with the jpeg into iPhoto and then into other folders. However, sometime during a recent session transferring photos in this way, the dates of the photos started to change at the point when I copied them out of iPhoto. Within iPhoto itself, the various original dates of the photos are retained. But in Finder and Bridge, copies of those same photos all carry the same (worthless) date: the date and time that they were imported from my iPhone. I can’t figure out what would have changed on my Mac to make it start re-dating my photos. I was happily dragging and dropping photos, and suddently I started to lose the original dates. Did I inadvertently change some settings? (I am running OS 10.6.8 and using iPhoto 8.)

    (I use iPhoto only to import from my iPhone; I organize all my images, including thousands of RAW files, in folders on a big external drive.)
    Why are you using iPhoto at all? use image capture or drag and drop the photos
    The problem is that the files I am copying are getting stripped of the EXIF metadata
    eliminating iPhoto from your work flow will eliminate one oppertunity to have this happen  For photos in iPhoto it is best to export them rather than drag an drop them - this assures your EXIF and IPTC data is correct and uptodate
    Why would I be able, over many years, to retain EXIF metadata in photos imported from an iPhone--then one day find that the same workflow strips such photos of EXIF data?
    Because exporting is the supported way to "export" photos - I never drag and drop photos out of iPhoto and I never use thrid party programs on the photos in the iPhoto library - try exporting as suggested above and see if that is the solution
    LN

Maybe you are looking for

  • When i scan in PDF and view it on the screen it has a blue effect

    When i scan into PDF and view it on the screen it has a blue effect

  • The Unusual Case of The Invisible Font.

    Strange problem with AppleCasual font. I used it not too long ago. Today I go to access it and it is not listed in the font list. So...I go into Font Book and there it is, active and listed. I make sure that there is no problem with it and validate t

  • IPhoto -- edited via aperture

    Hi, I am working with iPhoto and aperture, and I set up iPhoto to edit a photo (from preferences)using Aperture. I open a photo that I have imported to iPhoto, select edit, Aperture opens, and a different photo that I imported to Aperture opens. So,

  • Lightroom 4.3 displays multiple indentical images.

    Mar 16, 2013 1:44 PM in reply to Community Help Report I am in the process of organizing my Literoom images and filter displays MULTIPLE IDENTICAL IMAGES, under METADATA STATUS changed. . Computer info - Literoom 4.3, windows 7, some 55,000 images on

  • Firefox help written in cyrillic for some reason

    I tried to access Firefox discussion communities, etc, and there is all sorts of cyrillic (I think) written on the page, such as this: Поставите питање Где поставити питање Форум за помоћ око фајерфокса На форуму, Ваше питање ће бити јавно приказано,