hotline go boom....

Talk about anything here.
Post Reply
User avatar
Point
Posts: 1805
Joined: Mon Mar 22, 2004 12:58 pm

hotline go boom....

Post by Point »

"The website you were trying to reach is temporarily unavailable."

"The server you are trying to reach is jacked up go outside and play"
if one does not learn from the failings of the past they are likely to suffer its return.
User avatar
Point
Posts: 1805
Joined: Mon Mar 22, 2004 12:58 pm

Re: hotline go boom....

Post by Point »

Please check back soon.
If you are the owner of this website, please log in for additional
information or contact us as soon as possible.
if one does not learn from the failings of the past they are likely to suffer its return.
Death's Avatar
Site Admin
Posts: 1023
Joined: Mon May 24, 2004 8:59 pm

Re: hotline go boom....

Post by Death's Avatar »

We're aware, thanks.

Fixed: Stupid.
User avatar
Point
Posts: 1805
Joined: Mon Mar 22, 2004 12:58 pm

Re: hotline go boom....

Post by Point »

ya i know you guys know ... just sparing peeps trying to log on for the 15th time ... :)


Good luck and keep up the good work... :)
if one does not learn from the failings of the past they are likely to suffer its return.
User avatar
capital
Posts: 592
Joined: Wed Mar 31, 2004 9:15 pm

Re: hotline go boom....

Post by capital »

My code encountered an unhandled exception in the foofile-IO Database. Doobie has kindly reprogrammed a catch.

Code: Select all

function d_in = read_image(foofilename)
[path name ext] = fileparts(foofilename);
try
   fid = fopen(foofilename, 'r'); 
   d_in = fread(fid); 
catch ME1 
   % Get last segment of the error message identifier.
   idSegLast = regexp(ME1.identifier, '(?<=:)\w+$', 'match'); 

   % Did the read fail because the file could not be found? 
   if strcmp(idSegLast, 'InvalidFid') && ...
      ~exist(filename, 'file')

      % Yes. Try modifying the foofilename extension.
      switch ext
      case '.jpg'    % Change jpg to jpeg 
          filename = strrep(filename, '.jpg', '.jpeg')
      case '.jpeg'   % Change jpeg to jpg 
          filename = strrep(filename, '.jpeg', '.jpg')
      case '.tif'    % Change tif to tiff 
          filename = strrep(filename, '.tif', '.tiff')
      case '.tiff'   % Change tiff to tif 
          filename = strrep(filename, '.tiff', '.tif')
      otherwise 
         fprintf('File %s not found\n', filename);
         rethrow(ME1);
      end 

      % Try again, with modifed filenames.
      try
         fid = fopen(filename, 'r'); 
         d_in = fread(fid);
      catch ME2
         fprintf('Unable to access file %s\n', filename);
         ME2 = addCause(ME2, ME1);
         rethrow(ME2)
      end 
   end 
end
Post Reply