Im working on a parser here that opens a file, reads it and prints data in another file.
The input file is determined from sys.argv[1] to both handle commandline opening and drag and drop (in windows). However, when drag and dropping a file, it gives me
ioerror 13: Permission denied
Looking at what sys.argv contained, I did the follo...
            
           
          
            
            I have a rails application, running in development mode ( with a sqlite database ). The application's purpose is to allow users to upload files through a java client. 
If a user wants to upload a folder, all the files inside it will be recursively uploaded. If a user wants to upload a file, the file will be uploaded normally. 
Here's t...
            
           
          
            
            Hi,
I'm trying to do an http post from flash on my website to a method in a controller (My site is on Asp.Net MVC) and I'm getting this error: 
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.mysite.com/Home/DoSomething
    at Main/postToMyWebsite()
Any ideas of why these errors happen and how to preve...
            
           
          
            
            C has perror and errno, which print and store the last error encountered. This is convenient when doing file io as I do not have to fstat() every file that fails as an argument to fopen() to present the user with a reason why the call failed.
I was wondering what is the proper way to grab errno when gracefully handling the IOError excep...
            
           
          
            
            In our code we catch IOError and log it before reraising. I am getting a "connection reset by peer", but nothing in the logs. Is "connection reset by peer" a subclass of IOError in python?
     .....
  File "/usr/lib/python2.5/httplib.py", line 1047, in readline
    s = self._read()
  File "/usr/lib/python2.5/httplib.py", line 1003, in ...
            
           
          
            
            I'm writing a project at the moment in Ruby which makes use of the ActiveRecord gem for database interaction and I'm trying to log all the database activity using the ActiveRecord::Base.logger attribute with the following code
ActiveRecord::Base.logger = Logger.new(File.open('logs/database.log', 'a'))
This works fine for migrations et...
            
           
          
            
            I am an ASP.NET MVC newbie.  I am getting a very strange error when I attempt to add a new strongly-type view in my controller.  I am using a basic class, with no dependencies, with the View content set to "List".  I am using a master page.  The view name is a standard "Index".  This used to work just fine but it all of a sudden started ...
            
           
          
            
            Hay, i have a model which saves 2 images
class Picture(models.Model):
    picture = models.ImageField(upload_to=make_filename)
    thumbnail = models.ImageField(upload_to=make_thumb_filename)
    car = models.ForeignKey('Car')
    created_on = models.DateField(auto_now_add=True)
    updated_on = models.DateField(auto_now=True)
    def ...
            
           
          
            
            If I'm loading images via the <img> tag in a dynamic text field and an IOError is thrown, what would I attach the event listener too?  the text field?
I tried this...
var textField:TextField = new TextField();
textField.htmlText = "here is some text <img src='image.jpg'> and then some more";
textField.addEventListener(IOErrorEvent.IOErr...
            
           
          
            
            Actionscript:
System.security.allowDomain("http://" + _root.tdomain + "/");
import flash.net.FileReferenceList;
import flash.net.FileReference;
import flash.external.ExternalInterface;
import flash.external.*;
/* Main variables */
var session_photos = _root.ph;
var how_much_you_can_upload = 0;
var selected_photos; // container for sel...
            
           
          
            
            I currently have a client / server setup where the client sends data to the server and then the server saves the data to a SQLite database file. To do this I am using transactions which works fine in windows 7 when I run around 30 clients (each client sending data back between 5 - 30 seconds).
When using the same software in Windows XP,...
            
           
          
            
            The following code shows a button that allows you to select a file (should be an image) and display it into an image component. When I select an invalid image (e.g. unsupported image type, a word document), I get the following error:
"Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type."
I know I can ...
            
           
          
            
            I have an issue where the local version of django is handling image upload as expected but my server is not.  Note: I am using a Django Container on MediaTemple.net (grid server)
Here is my code.
def view_settings(request):    
<snip>
if request.POST:
    success_msgs = ()
    mForm = MainProfileForm(request.POST, request.FILES, instan...
            
           
          
            
            Hello,
I have an URL loader with the following code:
public function getUploadURL():void {   
    var request:URLRequest = new URLRequest();
    var url:String = getPath();
    // Adds time to prevent caching
    url += "&time=" + new Date().getTime(); 
    request.url = url;
    request.method = URLRequestMethod.GET;
    _loader = ...
            
           
          
            
            You know you can edit basic html with RTE (Rich Text Editor) Flex Control.
If your html code contains <img src="" /> tag, it will try to load that image from src.
But how to handling IOError?
or is it possible to disable the automatic image loading feature?
Thanks
...
            
           
          
            
            I'm making a Django website and am fairly new. In this webapp I need to use this API which will spit out an xml file with the requested data from the database.
Basically the API URL is:
https://adminuser:[email protected]/database.getdata?arg=1&arg2=0
So in my python views.py I have:
def fetch_xml(url):
  import urllib
...
            
           
          
            
            Hi all - 
I have a tilelist component using a custom ImageCell based item renderer. I know that at times some of the images it is trying to retrieve will not be found and I am able to handle this via an IEOrror listener on the custom ImageCell loader.
However, if I set the data provider, then it is changed before all images have comple...
            
           
          
            
            I have not had much luck hunting for finding a good explanation of what invalid argument errors are and what would cause them.  
My current sample I am working with is
import sys
mylog="mylog.log"
sys.stdout = open(mylog,'w')
#lots of code
#.
#.
#.
#End of lots of code
from time import clock
print "blablabla",clock()
I receive an IOE...
            
           
          
            
            for subdir, dirs, files in os.walk(crawlFolder):
    for file in files:
         print os.getcwd()
         f=open(file,'r')
         lines=f.readlines()
         writeFile.write(lines)
         f.close()
writeFile.close()   
I get the error as:-
IOError: [Errno 2] No such file or directory
In reference to my partial python code abov...
            
           
          
            
            Hello every one.
I am using jquery uploadify to upload files. It works fine on my local server but i get the error IO Error when i try to upload even the small sites in live. 
Can any one please help me on this issue? Your help will be very much appreciated. Thanks.
...