This is rubbish!!

Hey Servlet/JSP programmers! Want to see some fun? I am not sure if you've already seen this, but i saw it first time today.
Do one thing - Paste following lines of code in one file. Call it "OSTest.jsp" and access it thro' browser.
<%@ page import="java.io.*"%>
<%
response.getOutputStream().write("This is rubbish!".getBytes());
%>
You'll get exception: getOutputStream() has already been called for this response!
Where did I call it before?
Now remove first line(<%@ page import="java.io.*"%>), save and access again.
No error! "This is rubbish!" printed!
Any comments?

Yes kuldeepchaturvedi, you are right. But the funny
thing about this is that the JSP compiler generates
one extra line i.e.
out.write("\r\n");
when we include this line:
<%@ page import="java.io.*"%>
at the top. And it does not include it when we remove
that line. I wonder if this is a bug.
So friends if you want to play with the response's
s OutputStream, Do not include <%@ page
import="java.io.*"%> at the top, atleast in
Tomcat4.1.24.It includes it because you put a return carrige after typing the line. Any characters, returns and spaces, that are put outside of <% %> are written out with out.println();

Similar Messages

  • Just regular surfing and it would freeze, never had this on Firefox 4.8, This is rubbish, might as well be using internet explorer

    I would be surfing using firefox, going on websites streaming and all the usual things I have done before with firefox 4.6 & 4.8, and even 5 untill one day in the last month it has froze from time to time, for short periods and long periods.
    Ironically it froze when I was writing this, so i have a screen shot so you can see your product not working.
    I have always enjoyed using Firefox, yet now it is becoming more frustrating and annoying than it is fun.
    Please dort out this issue A.S.A.P.
    Many Regards,
    Stuart Henson

    what makes the drive,if a wd is it jumperless if no slave on the ide

  • I am sick of yahoo pages appearing when i even click a web link to get to another page on that site. this is rubbish. i am going to ditch you firefox .

    how can i stop these stupid yahoo pages interrupting my browsing i am in NZ and fed up with this.

    On Mac, the most common reason to get this is Spigot or Conduit add-ons. You can check for those on the Add-ons page, either:
    * Command+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click '''Extensions'''. Then, if in doubt, disable (or Remove, if possible) unrecognized and unwanted extensions.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    Note that such add-ons may have been part of a bundle with something else and may be re-injected into Firefox if the bundle installer is not removed from your system.

  • Have lion on 5 year old 20" mac desktop. tried to download and received a message mountain lion not compatible with this computer. anyone else have this problem?

    have lion 10.7.4 up graded from tiger 10.5.8. tried to download mountain lion but received a message that mountain lion is not compatible with my computer. anyone have this problem or suggestion?

    It's actually not the chip... it's the drivers for the video card. this is what my friend who does IT work said.
    "The drivers for your Mac's video card are not 64bit compatible even though the computer itself is. Mountain Lion has done away with all 32bit OS components so it only runs on full 64bit MAcs now"
    So even though I updated my video card to a newer version and my computer itself is 64bit... apple didn't create a driver for it that was 64 bit. My hardware is fine for this update and the chip can handle it. It can handle all my 64 bit programs just fine. It's apple forcing me to update and buy a new expensive computer. So much for long lasting computer... they last long but they won't be supported very long.
    Why not release a version of mountain lion that supports 32 bit graphics alongside the 64 bit? Wasn't that what grand central was going to accomplish? This is rubbish.

  • 4 months and still rubbish.....

    Posted on this forum some time ago with reference to a slow and unreliable connection.
    Contacted the mods as suggested and then had 2 enginner visits and a new hub about a month ago.
    Problems with a slow connection and hub rebooting continue.
    Hub has rebooted this month........
    17:15 Jul 1st
    18:30 Jul 1st
    12:20 Jul 2nd
    17:00 Jul 3rd
    19:00 Jul 3rd
    05:30 Jul 4th
    12:00 Jul 5th
    12:15 Jul 5th
    15:00 Jul 5th
    15:00 Jul 5th
    11:00 Jul 11th
    19:30 Jul 11th
    08:15 Jul 12th
    17:00 Jul 12th
    23:00 Jul 12th
    20:00 Jul 14th
    23:00 Jul 14th
    18:30 Jul 17th
    21:00 Jul 17th
    23:00 Jul 17th
    08:00 Jul 18th
    Line noise varies from as low as 1.4 up to about 7
    Connection generally about 1125k, (Profile 1000k after a few hours), sometimes get stuck at 480k (Requiring a manual reboot to get the line speed up, not included in above reboots).
    Due to the number of times the hub reboots the profile is usually low, 350k
    There was talk of a "Rein" engineer looking at it as a previous engineer though there might be interference causing the hub to reboot, but they sent a new hub instead.
    So whats my next step ?
    This is rubbish and not the kind of support I expected from BT.
    Solved!
    Go to Solution.

    Yeah BT just called, there's nothing they can do. (Great news eh ?).
    Because of the distance from the exchange, I just have to put up with the hub re-setting when it feels like it (A couple of times a day).
    No point in sending out any more engineers.
    My only option according to the guy that called is to wait for FTTC, and thats a couple of years, at least, away for us.
    My connection with Tiscali over the same BT line was faster and more stable, you couldn't make it up !
    I'm disappointed.............
    And to add insult to injury, I just had a BT flyer drop through the door............
    "Be one of the BETTER CONNECTED"
    Very funny.

  • AUDIGY 2 SOUNDS RUBBISH WITH VISTA DRIVER

    I would like a explanation as to why MP3 files that once sounded punchy,dynamic,vibrent whilst using this very same sound card, now sound absolutly atrocious through your Windows Vista? Drivers. I have 2 mid priced Mackie Studio Referance Monitor's, the same monitors i have been playing compressed audio files through for the past 2 years, when not monitoring these speakers have tailored DB switiching on the rear, to colour up the sound. In short, these are extremly accurate referance monitors. Why is it that MP3's are listless,flat, lacking dynamics,punch and in very short terms, sound absolutly appalling!. You know one may begin to wonder as to why this is ? . Surely it could not have anything whatsoever with Creative wanting you to migrate to a X fi ?. No that could not be could it, of course MP3's sound terriable now, becuase your poor overworked team cannot produce DECENT AND CORRECTLY WORKING DRIVERS!. Watch your step !, or mark my words your company with have a Mass?tort Class Action Suit on it's hands. Im fed up with this pathetic rubbish, half-working drivers lacking 80% of features. There are laws against this type of manipulation you know !........
    FIX YOUR DRIVERS !!

    had the same problem myself. download the x-fi driver package and extract the files using winrar. now inside there is a subfolder called "drivers". run setup and it works fine on audigy2 cards. the sound is back to how it should be.
    of course i wouldn't accuse creative of purposely making the audigy2 drivers sound terrible so we all upgrade.... Message Edited by marc2003 on 03-6-20072:43 PM

  • Ipod Recognised by Windows XP but not iTunes

    Why oh why does nobody have the brains to offer a decent solution to this.
    I have read the same Sh*t again and again.
    It is not helpling. Reset, reformat etc, drive letters, reinstalling e.t.c.
    Same Problem Here!!!
    This is rubbish,
    We are all going round in circles like fish in a barrel.
    The same solutions are getting muted again and again.
    Being directed to the same set of lame attempts to solve the problem of our Ipods not beeing seen in iTunes.
    My Ipod Nano has just been newly formated and tested on a computer with a fresh and raw un-networked version of Windows XP with the original disk that came with my iPod.
    It can clearly bee seen by any XP computer I connect it to.
    I can copy files on to it, remove files off of it.
    Windows is displaying the correct amount of free space and it is drive I: on all computers I have tested it with Three computers: One laptop XP SP1, One Desktop XP SP2.2, One Desktop XP raw new install no SP.
    I have used Ipod updater 2005-9-23 and 2006-6-29 and iTunes 5 and 6 on all computers and still no luck.
    Oh why oh why soooo much bullsh**, I just wana listen to some music. Sob Sob........

    i was lucky enough yesterday or the day befor to see that some 1 had posted a mayby solution in as a topic. yet no 1 belived him i still tryed and my ipod dint work the first time i conected it so i updated 4 or so songs onto my ipod using the soft ware he posted but then got bored and left it. yet 2day when i conected my ipod it came up in itunes perfect.
    heres a link to the software download
    http://www.redchairsoftware.com/anapod/
    its tops stuff
    u might wanna get this befor apple delets it again

  • Notes sync no longer works

    I've just upgraded to OS X 10.8 Mountain Lion on my early 2009 iMac and since the upgrade Apple's Notes app no longer syncs with Notes on my iPhone 3G or my new iPad 3rd generation when syncing via USB cable.
    The Mail and Notes apps have now been split - but Notes does not appear anywhere in the syncing options in iTunes (in the Info tab).
    I spent an hour on the phone with an Apple support guy (2nd level), who eventually admitted there was no solution.
    Anyone found a workaround?
    Apple - please fix this!

    Rubbish indeed. You used to be able to hit a back button and select which email address on your phone you were looking at notes from. They totally did some kind of "update" or something to get rid of that feature. Not cool. Either they hate Google too a little bit too much or they really want to force us to use iCloud, buy a new phone and stop using their still useful 4 year old iPhone 3G. I used the note sync feature with Gmail all the time. it was totally rad.

  • Tricky bug!!

    Hi there, ive been using lucence for a assignment that i am doing i was wondering if some you could have a look that this piece of code that i have been working on.
    The code that i am working on this below
    package Search;
    import org.apache.lucene.analysis.Analyzer;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.index.FilterIndexReader;
    import org.apache.lucene.index.IndexReader;
    import org.apache.lucene.queryParser.QueryParser;
    import org.apache.lucene.search.Hits;
    import org.apache.lucene.search.IndexSearcher;
    import org.apache.lucene.search.Query;
    import org.apache.lucene.search.Searcher;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.ArrayList;
    /** Simple command-line based search demo. */
    public class searchHTML {
    /** Use the norms from one field for all fields. Norms are read into memory,
    * using a byte of memory per document per searched field. This can cause
    * search of large collections with a large number of fields to run out of
    * memory. If all of the fields contain only a single token, then the norms
    * are all identical, then single norm vector may be shared. */
    private static class OneNormsReader extends FilterIndexReader {
    private String field;
    public OneNormsReader(IndexReader in, String field) {
    super(in);
    this.field = field;
    public byte[] norms(String field) throws IOException {
    return in.norms(this.field);
    public searchHTML() {}
    /** Simple command-line based search demo. */
    public String querySearch(String[] args,String searchValue) throws Exception
         String result = "";
    String usage =
    "Usage: java Lucene.SearchFiles [-index dir] [-field f] [-repeat n] [-queries file] [-raw] [-norms field]";
    if (args.length > 0 && ("-h".equals(args[0]) || "-help".equals(args[0])))
    System.out.println(usage);
    System.exit(0);
    String index = "{index-dir}";
    String field = "contents";
    String queries = null;
    int repeat = 0;
    boolean raw = false;
    String normsField = null;
    for (int i = 0; i < args.length; i++) {
    if ("-index".equals(args)) {
    index = args[i+1];
    i++;
    } else if ("-field".equals(args[i])) {
    field = args[i+1];
    i++;
    } else if ("-queries".equals(args[i])) {
    queries = args[i+1];
    i++;
    } else if ("-repeat".equals(args[i])) {
    repeat = Integer.parseInt(args[i+1]);
    i++;
    } else if ("-raw".equals(args[i])) {
    raw = true;
    } else if ("-norms".equals(args[i])) {
    normsField = args[i+1];
    i++;
    IndexReader reader = IndexReader.open(index);
    if (normsField != null)
    reader = new OneNormsReader(reader, normsField);
    Searcher searcher = new IndexSearcher(reader);
    Analyzer analyzer = new StandardAnalyzer();
    BufferedReader in = null;
    if (queries != null) {
    in = new BufferedReader(new FileReader(queries));
    } else {
    in = new BufferedReader(new InputStreamReader(System.in, "UTF-8"));
    QueryParser parser = new QueryParser(field, analyzer);
    if(true)
         if (queries == null) // prompt the user
         System.out.println("Enter query: " + searchValue);
         String line = searchValue;
         if (line == null || line.length() == -1)
              System.out.println("test");
         //break;
         line = line.trim();
         if (line.length() == 0)
              System.out.println("test2");
         //break;
         Query query = parser.parse(line);
         System.out.println("Searching for: " + query.toString(field));
         Hits hits = searcher.search(query);
         // if (repeat > 0) {                           // repeat & time as benchmark
         // Date start = new Date();
         // for (int i = 0; i < repeat; i++) {
         // hits = searcher.search(query);
         // Date end = new Date();
         // System.out.println("Time: "+(end.getTime()-start.getTime())+"ms");
         System.out.println(hits.length() + " total matching documents");
         final int HITS_PER_PAGE = hits.length();
         int end = Math.min(hits.length(), HITS_PER_PAGE);
         for (int start = 0; start < end; start++)
         //for (int i = start; i < end; i++)
         //if (raw)
              //     {                              // output raw format
         // System.out.println("doc="+hits.id(i)+" score="+hits.score(i));
         // continue;
         Document doc = hits.doc(start);
         // System.out.println(hits.length());
         for(int i = 0; i<hits.length(); i++)
              ArrayList<String> st = new ArrayList<String>();
              st.add(doc.toString());
              // System.out.println(st);
         String path = doc.get("path");
         if (path != null)
              System.out.println((start + 1) + ". " + path);
         String title = doc.get("title");
         if (title != null)
              ArrayList<String> r = new ArrayList<String>();
              r.add(result = "Title:" + doc.get("title"));
              //System.out.println(result.length());
              //result = " Title: " + doc.get("path");
         else
         result = (start+1) + ". " + "No path for this document";
         //if (queries != null) // non-interactive
         // break;
         if (hits.length() > end)
         System.out.println("more (y/n) ? ");
         line = in.readLine();
         if (line.length() == 0 || line.charAt(0) == 'n')
         break;
         reader.close();
    else
         System.out.println("finished");
    return result;
    At the mintue i am using JSP pages to display the result however, i am getting different results on the jsp page from what i am getting on the consle.
    This is the result from the jsp page
    Value Searched on:myspace
    1Title:MySpace
    2Title:MySpace
    3Title:MySpace
    4Title:MySpace
    5Title:MySpace
    6Title:MySpace
    7Title:MySpace
    8Title:MySpace
    9Title:MySpace
    10Title:MySpace
    11Title:MySpace
    12Title:MySpace
    13Title:MySpace
    14Title:MySpace
    The title MySpace is the title of the html document
    and from the console this is what i am getting : -
    3 total matching documents
    1. H:/Lucenetext/output4.html
    2. H:/Lucenetext/output8.html
    3. H:/Lucenetext/output1.html
    Ive been looking at this for a couple of weeks and was wondering if i could have a fresh pair of eyes to look at it.
    Any help would be very grateful
    Yours
    Chris

    OK
                 System.out.println("Enter query: " + searchValue); What's the point of that unless you then read some input from the user?
               if (line == null || line.length() == -1) line.length() can never be -1. This is rubbish.
              // if (repeat > 0) {                           // repeat & time as benchmark
               //  Date start = new Date();
               //  for (int i = 0; i < repeat; i++) {
                //   hits = searcher.search(query);
               //  Date end = new Date();
               //  System.out.println("Time: "+(end.getTime()-start.getTime())+"ms");
              // } Remove this junk.
               System.out.println(hits.length() + " total matching documents"); This goes to the console. A JSP doesn't have a console so you will never see it - it might be in a log file somewhere if you're lucky.
                 //for (int i = start; i < end; i++) Remove all this commented-out junk.
                   for(int i = 0; i<hits.length(); i++)
                        ArrayList<String> st = new ArrayList<String>();
                        st.add(doc.toString());
                       // System.out.println(st);
                   } As 'st' now gets thrown away this is all junk. Remove it.
                      System.out.println((start + 1) + ". " + path); See above remarks about the console.
                     if (title != null)
                          ArrayList<String> r = new ArrayList<String>();
                          r.add(result = "Title:" + doc.get("title"));
                          //System.out.println(result.length());
                          //result = "   Title: " + doc.get("path");
                     } See above. 'r' gets thrown away. Remove this junk except for the assignment to 'result'.
                   System.out.println("more (y/n) ? ");
                   line = in.readLine(); See above re console. You need to think more clearly about the difference between a console application and a JSP. A JSP writes a page of HTML.

  • Can't send emails to multiple recipients any more?

    Yesterday I had to send an email to some 30 other people (I only do this occasionally).
    It refused to go and I received this error message:-
    I have several email accounts but each one was the same.
    At that time I could not even send single emails but incoming emails were unaffected.
    Later in the day I received this email from my ISP mail account.
    Your emails may be blocked – please confirm your alternate BT Yahoo! Mail addresses
    Dear Customer,
    You’ve received a ‘553’ error message because we’ve upgraded your BT Yahoo! Mail account security to help protect against ‘spoofing’ – when people use alternate email addresses to disguise the real sender, possibly to commit fraud.
    What you need to do
    We need you to take a few minutes to confirm each of the BT Yahoo! Mail alternate email addresses you use are genuine. If you don’t, you might get more ‘553’ error messages and have problems sending emails. Just log in and follow these simple steps. We don’t ask for any personal information.
    This is rubbish and I had a similar one last year which I ignored, as the simple steps were far from simple, and the following morning all was back to normal.
    So I ignored this email and tried again this morning.
    I was still unable to send emails to multiple recipients but now I can send single emails OK!
    Any ideas what is going on?
    Is it Mail's fault or my ISP's?

    From the error message, it looks like there was a problem with at least one of the addresses ("NONE"). It is possible that a bad address is in the list you tried to send to.
    I don't know anything about BT Internet, so I can't confirm the authenticity of the email you received.
    You should be able to log into your BT account directly from the web without using any links sent in the email.
    The email also seems to indicate you used an alias as the reply-to (from) email address.
    You didn't mask out the username for your smtp server and it is definitely different from the from account. This may all be normal, but it does tend to match what the email is telling you.

  • I am new, how I have found CF so far!

    I have just finished the 2 lynda.com tutorials series for CF 8 (very well done I would recommend them to new CF users). Once you do them (and practice) you can wizz through most web tutorials you will find. Not to mention Ben Forta's phone books are suddenly easier to read. Th I am still going through Ben's et al books but together they are really helping me learn CF quickly. The community web sites are harder to find but are also proving VERY useful. They are not so many but what there is are very good.
    I have to say as I am starting to build my own CF applications now that I find the language VERY WELL suited to the web. I like the easy syntax even though I know more traditional coders prefer traditional syntax. I learned basic programming in traditional syntax, but I did not find it hard at all to pick CF syntax up or was it annoying as I had been told!
    At first it did freak me out all these <> things. But you get use to it and it does help to feel more web like, but coming from traditional syntax this <cfcommandhere> is weird at first.
    I got the Adobe bug a few years back when I was working mainly with MS technologies.
    I started to get into AI, FL and PS and even ID if you can believe it! I also knew the old DW/HTML/CSS/JavaScript set up so I started to wander into front ends and bought a Mac. I just liked it, it was fun. I forgot MS it had been boring and stuffy.
    But recently with the economic mess things are in I thought I would get back into some back end again to have a wider skill base. Keep my options open kinda thing.
    So I thought well I am using Adobe anyway let's see this ColdFusion rather than go back to MS or turn to PHP/ROR. You have to understand having been in front ends and graphics I have some basics of them all anyway.
    I nearly did not as the web is not full of praise at all on the surface for CF. ROR is hyped but I did not like it's feel (framework is good bit CF does it too if you want to). The PHP community was too fragmented into a multitude of Open Source Projects - most of which I would never use. ASP had changed too much for me and I did not own a windows license anymore. I am using OSX and Linux distros of the day.
    So I looked up the CF community. I noticed unlike the PHP/ASP/ROR etc you had kinda like father figures here (who help newbies!). So I bought the lynda.com DVD's and Bens books and go to work. 2 months later I am glad I did! I am far from finished but proud to be part of CF and feel eh rather powerful like a web magician now.
    CF gives me time to do graphics and not be stuck in code all day long.
    I also noticed CF was based on Java and could be scaled up potentially better than the others with Java technologies. It could also integrate with .NET technologies.
    I also have to say how impressed I am with ColdFusions hook up to MySQL Server (or any popular DBMS). It was amazing how quick I could get data in and out of a database with CF! If your a database guy and want to do front ends in a browser from your databases you have to try this! I had some pretty complex schema, it did not bother CF at all, it just wrapped the SQL and was like a bridge to the my front end. Much easier than PHP or ASP.
    I don't believe you need to make things difficult just because you can, and that is why I like CF if Adobe can make it easy for you they appear to do so. The amount of functions CF has is very impressive. The whole focus of the CF is for rapid web development. It does not mess about it just gets straight to that goal.
    The free development license too is amazing. You can learn for free. What is all this CF costs money rubbish I was told before I started. I have found very good shared hosts with great prices and even some using open source CF really cheap. If you need a dedicated machine and can't afford CF then you can't afford a dedicated machine. So that is all rubbish that is spread by other web application server language users. Adobe needs to make new coders know this is rubbish. Some kind of Mac like  adverts would be really cool. Like Mac had a problem with misconception and stereotypes I think CF has an issue there to be resolved for new potential users. I mean I am new and I felt like this. The free academic license is great start.
    CF also runs on just about anything did I mention that!
    I have been using ColdFusion for only 2 months but I think this is the start of a long term relationship with another Adobe product. I just wish Adobe would clean up some of these bad stereotypes many people have about CF which nearly put me off. If I had not been so hooked on DW,PS,AI,FL,ID etc I would never have tried CF after reading the other communities web sites. It is fine to have an opinion but most of them are wrong that is the problem and have never even used CF. I never found CF coders doing the same in return, they did not comment unless they knew the other languages. That helped me be more confident joining this community.
    Anyway just a perspective from a new user! If your thinking of getting into a web application server language I hope this post might help.

    It's always exciting to read how someone such as yourself feels about ColdFusion. Sometimes, we as developers forget those first days, months and years learning and grappling with ColdFusion.
    Just in case you didn't know about some of these ColdFusion resources, I thought I would point them out to you:
    http://feeds.adobe.com/?categoryName=ColdFusion - you'll find recent posts from ColdFusion blogs that have registered with Adobe
    http://www.coldfusionbloggers.org/index.cfm - another aggregator of ColdFusion blogs
    http://cflib.org/ - a great place to find User Defined Functions (UDFs) created by ColdFusion developers
    http://www.riaforge.org - another great resource of many free, open source ColdFusion projects, etc.
    http://www.carehart.org/cf411/ - an endless list of several other ColdFusion tools, resources, etc. that will keep you busy for the next several years!
    Thanks for sharing your thoughts and I wish you continued success in your quest for ColdFusion knowledge.

  • I want to retain my itunes 'date added' information when transferring to my new macbook pro

    Hello There
    I think even before I ask this, that I know what the answer will be, so please don't laugh at me, just sympathise..
    I have a lot of music. A lot. So much I need to use the date added to keep it all organised and know where I am. Previously I used a computer from work for everything, but just got a shiny new macbook pro - woo hoo!
    First thing I did was transfer my itunes library. I use a HD so pretty easy, simply hold down the option key whilst starting itunes, select the library on my HD and wallop, off we go. After a few minutes of chugging all my music is there and my playlists. Fantastic I thought, but then hold on - date added says today. This can't be right I say to myself, some of these files were added in 2008...
    Being slightly paranoid about doing this I created a copy of my old itunes library - better safe than sorry. I open the old back up of itune library (an xml file) and sure enough, all the correct dates are there. I open up the new one and it says everything was imported today. Weird. So I try reimporting -doesn't work, overwriting the new xml file with the old info, saving and opening itunes again - no sir. Nothing works. It appears that whilst I can interact with the xml file, itunes uses another file (itunes document) which checks consistency, and won't allow the xml file info to overwrite, simply rehashes to the dates it thinks are right.
    Done a fair bit of research and I think the answer is there is not an answer. Being the wise old owl that apple is, it has decided that users will not want this information if they ever move or buy new computers, so while it will keep your playlists, it won't have this bit of info. My only option has been to create spreadsheets of old list for reference.
    I'm hoping out there someone will tell me that apple have realised this is rubbish and have fixed, or will say fret no longer, here is the magic workaround, but I haven't found anyone who can yet. Does anyone have the answer?
    Until then, I will continue to perform this awkward workaround and stick pins into the apple voodoo doll.
    Cheers
    Mr Sherlock

    weird very weird. today i did this again today after already being unsuccessful earlier. exactly the same thing as i have done before, exactly. didn't try to import. didn't say damaged library, copied everything in including date. have tried it about 10 times no luck. today it just worked.
    how weird is that?
    oh well JG - maybe you mixed a magic potion for me?
    anyway, thank you for all the help.
    to anyone else reading this all i can say is keep trying, you never know. follow the above advice. you may feel exasperated and think you have done it already, but keep trying.
    cheers
    P

  • File Download results with corrupted file. End of File problem

    Hello
    I am tring to make a download program. I am tring to download an exe file from internet. Lets say the file in this website
    http://www.oldversion.com/download/winrar154.exe
    The part that helps me downloading is here, which is encapsulated with a "while" statement at an upper layer. So that code is a loop
                                 byte buffer[];
                                 if (size - downloaded > MAX_BUFFER_SIZE) {
                                     buffer = new byte[MAX_BUFFER_SIZE];
                                 } else {
                                     buffer = new byte[size - downloaded];
                                 // Read from server into buffer.
                                 int read = inFromServer.read(buffer);
                                 if (read == -1)
                                     break;
                                 // Writing buffer to file below that partBut when there is no bytes left to download, it doesn't understand that end of file reached. The inFromServer.read method must return -1 whenever it reaches to an end of file, but in my code it continues looping within my "while" statement because it doesn't understand end of file has came, read becames 0 after there is no bytes left to download. It doesn't see that end of file is reached. And when download ends, the exe that I made is not working. By the way since this is my homework I am restricted to use many java classes like starts with http or url, so you don't need to suggest them. Here is my debug results for my integer read in the code: 1024 1024 1024 ....................... 512 0 0 0 0 0 ......, So till the end of the file it continues as 1024 which is my default buffer size, and at the end it continues as 0.
    I would be happy if you help me.

    There's a terrible amount of rubbish in this thread.
    while(myStream.read(buffer) != -1){ //this will give the pretest you need for the eof.
    //your stuff.
    } This is rubbish because the return value isn't stored, so you don't know how much data was returned if EOS didn't occur.
    If you're getting reads of length 0... you must have a bug in your code. read() methods do not return zero except via NIO in non-blocking mode.
    if you get 10 0's in a rowYou can't even get one 0 in a row, see above.
    int read = inFromServer.read(buffer);
    if (read == 0)And again. This cannot occur.
    The correct way to download a file, or indeed copy any input stream, is as follows:
    int count;
    byte[] buffe r= new byte[8192]; // or more
    while ((count = in.read(buffer)) > 0)
      out.write(buffer, 0, count);
    out.close();
    in.close();

  • Change apple ID on Purchased APP's

    Until fairly recently my wife and I shared an apple ID, simply because it was easier, as we only had one debit card to pay for purchases etc.
    However, as our finances have become more stable I now have my own Apple ID and iphone 4.
    So all of the APPS that I have previously purchased using our 'shared' Apple ID, I have imported into 'my' iTunes. I've also been able to sync them with my iphone.
    The problem is, that when updates are issued they are looking for our 'shared' Apple ID. I did not with the following link that I'll need to put our 'shared' apple ID password in, forever...
    https://discussions.apple.com/message/20842941?searchText=Change Apple ID on APPS#20842941
    Isn't this slightly rubbish?
    I have paid for them, so don't see why I need to continue to use an old Apple ID. I appreciate this is for security reasons (otherwise, one person could download and share it with everybody). But, really that's not my concern, my concern is having the ability to update Apps that i have bought and paid for, without having to ask my wife "what's YOUR apple ID password again".

    Sadly that's the way it is. Apps are permanently tied to the ID used to purchase them, and you can't update apps across multiple IDs without switching in and out of each account.
    tt2

  • Preview blurry images?

    I have a few photos open in Preview, and they have a slight blur to them. Then I open the same files in photoshop, and they are crisp.
    Anyone else notice this?
    And I am a professional photographer, so no, the images are not out of focus

    Yep, I noticed this straight away too. Strange considering Preview is the primary way of viewing images on a computer system designed for creative/arty people.
    I've downloaded the press release screenshot for the new Final Cut Express 4, which is a 2400 x 1621 image. If I open it in Preview and Zoom To Fit, all the text looks as if it has a slight vertical motion blur on it. However, as I zoom into the image, I can see that there is a tremendous amount of detail and clarity in the image. It's clearly Previews fault as Photoshop would have no problem at all resampling this image but maintaining the clarity.
    Also, I don't know if anyone else noticed this, but if you click the + or - buttons in Preview 4.0 to zoom in or out of the image, it zooms and then JUMPS up as the scroll bars appear! This is rubbish. I want to zoom IN, not zoom in THEN shift up.

Maybe you are looking for

  • Unread emails originally appear as read

    My Q10 is set up to read 3 email accounts.  All three suffer the same problem, emails show up as having already been read - there is no distinction between before reading them for the first time on my Q10 and after reading them.  All three of these a

  • Handling Idoc acknowledgements

    Hi All, As per the document "How to handle acknowledgements for Idoc" I made all settings and i am able to get acknowledgement in XI. In the document it was said it is possible to configure  ALEAUDIT as request message by executing the report IDX_ALE

  • Recive a file with dynamic name

    Hi All, I want to receive a file with dynamic name containing date stamp to it.... eg File_20080123.txt , File_20080122.txt etc. Can anybody suggest how to do it? Thanks, Atul

  • Photos nor recognised in Organiser

    I have a problem with PSE Ver 11 operating on Win 7. No matter what I scan from my Epson 3170 Photo into the PSE 11 Organiser I am presented with: NOTHING WAS UPDATED. THE FILE(S) OR FOLDERS(S) SELECTED TO IMPORT DID NOT CONTAIN ANY SUPPORTED FILES T

  • File save dialog in scripts

    Hello, I use java script to create a document and I want to choose how and where it should be saved. var docName = File.saveDialog ('Save', 'Adobe InDesign publications:*.indd'); If I try to run this code in ExtendScript toolkit without choosing my c