User Profile

Collapse

Profile Sidebar

Collapse
luke14free
luke14free
Last Activity: Jun 2 '08, 07:51 AM
Joined: Apr 15 '07
Location: Italy, Milan
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Problem solved!

    python, while generating playlist was adding some kind of unsupported char near "http".
    I had to change in my xml provider

    Code:
    print "<media>"
    print sqllite_media
    print "</media>"
    to

    Code:
    print "<media>"+sqllite_media+"</media>"
    Bye,
    ...
    See more | Go to post

    Leave a comment:


  • SecurityError: Error #2147: when loading images from xml path why?

    Hello,
    I'm coding a file for my home page using flex. I'm getting horrible errors when trying to get img source from an xml file:

    SecurityError: Error #2147: Forbidden protocol in the URL
    http://www.talentdream .com/prj/-744961848/1665601556.jpg

    Feel free also to take a look to my xml provider:
    http://www.talentdream .com/cgi-bin/last.py

    Honestly I can't figure out why, my swf is online,...
    See more | Go to post

  • luke14free
    replied to Encoding question
    Sorry stupid question, problem solved, I had a problem with base64 encode that didn't support utf-8.
    See more | Go to post

    Leave a comment:


  • luke14free
    started a topic Encoding question

    Encoding question

    Hello,
    I've got a simple problem with encoding:
    every è ò à ù ì in my browser is seen as a strange A, a ? or a square, I know this depends on page encoding but this is my header...
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it"
    ...
    See more | Go to post

  • Actually I did it...
    What i got is: new line should be specified as chr(13) for '\r' and chr(10) for '\n'...result? no change...firefo x is working but ie isn't! Other hints? Is there a way to regex replace unix not working '\n' whit dos working ones?

    (by the way here is the code from the "get" page)
    Code:
    echo $user." Wrote:".chr(10).$comment.chr(10).chr(10);
    See more | Go to post

    Leave a comment:


  • Ie not interpreting correctly textarea's \r\n

    Hello,
    I'm writing a live chat in php and ajax (prototype.js). My problem is that, when the periodical updater gets chat text from an external php page, under IE \n\r are not recognized

    http://www.wetv.it/blog2.php

    The chat is very simple; here is my js code:
    Code:
    function ste (element) { // scroll to end the chat
    if (typeof element.scrollTop != 'undefined' &&
    typeof element.scrollHeight
    ...
    See more | Go to post

  • This is my complete function, I set up everything but email doesn't work...
    Code:
    def createhtmlmail (from, to, html, text, subject):
    	
    	out = cStringIO.StringIO() # output buffer for our message 
    	htmlin = cStringIO.StringIO(html)
     	txtin = cStringIO.StringIO(text)
    	
    	writer = MimeWriter.MimeWriter(out)
    	#
    	# set up some basic headers... we put subject here
    	# because smtplib.sendmail
    ...
    See more | Go to post

    Leave a comment:


  • luke14free
    started a topic Email considered as spam, why? Wrong headers?

    Email considered as spam, why? Wrong headers?

    Hello,
    I'm writing a simple mass mail application, it interacts with hMailServer and works quite well.
    My biggest problem, since the application works is that all my messages are considered as spam by gmail and many other important provider and are not reiceved by yahoo.
    I googled to found out what was the problem and I come up just with a possible header problem.
    Since I couldn't figure how to solve this problem i used...
    See more | Go to post

  • luke14free
    started a topic Python bug?!? Var assignment fails?

    Python bug?!? Var assignment fails?

    Hello, I do believe my python is mad or I'm mad...
    I want python to open a file

    Code:
    sp=self.listBox1.GetStringSelection().split("-")
          
    new="%s-%s-%s-%s-%s" % (sp[0],sp[3],sp[2],sp[1],sp[4])
    
    var="%s%s.fty" % (percorsob,mnew)
    print "THIS IS VAR: ", var
            
    f=open(var).read()
    Output?
    Code:
    THIS
    ...
    See more | Go to post

  • luke14free
    replied to Problems opening a file in a shared dir
    Problem solved using os.system and win32api.execut e. I wasn't able to map drives because the program works on more than 30pcs...it was kinda impossible...
    Thanks for help,
    Luce
    See more | Go to post

    Leave a comment:


  • Simple problem: Fast Changing focus in wxtextctrl by pressing tab

    Hello,
    I've done a program for a lawyer's office and i need to allow them inserting data faster than now by pressing tab when they have finished writing in a field (eg: there is a miniframe with 20 fields to be filled in and changing field with the mouse makes it slow...).
    I've wrote the application using BoaConstructor 0.6. I'm using python 2.5 and wx 2.86 (the last one...i cant remember if the number is correct...). Shouldn't be fast...
    See more | Go to post

  • luke14free
    started a topic Problems opening a file in a shared dir

    Problems opening a file in a shared dir

    Hello,
    I'm using Windows XP and Windows Server 2003 for a work.
    I need to copy a file from shared dir to my pc. This is my file location.
    \\NOTEBOOK\\Sha redDocs\\Musica \\Musica campione\\a.wma
    I tried to use os.system and open:
    Code:
    open("\\NOTEBOOK\\SharedDocs\\Musica\\Musica campione\\a.wma","r").read()
    Traceback (most recent call last):
      File "<pyshell#3>",
    ...
    See more | Go to post

  • luke14free
    started a topic Audio Wave sin inverter, how to?

    Audio Wave sin inverter, how to?

    Hello,
    I'm doing a project for a physics project and having some problem doing it.
    What I exactly need to do is to gain some audio from a microphone, analyze it and take its wave. Then i'd have to play the file with the inverted Sin (example, if the record is a wave that starts from the origin of an hipotetic cartesian plane, I have to create a new wave with -(sin) instead of +(sin) ).
    I was wondering if in python exists some...
    See more | Go to post

  • luke14free
    replied to What is your OS and Python Version
    Pocket Pc [hop rx1955 - windows mobile 5]:
    python 2.5 with Tkinter

    Nokia [6630]:
    python 2.5

    Ubuntu 7.04:
    python 2.4-2.5 & Eric editor, Boa Constructor.

    Windows Xp:
    python 2.4-2.5 & Visual Python(on Microsoft Visual Studio), Boa Constructor.
    See more | Go to post

    Leave a comment:


  • Problem solved, it seems that importing 2 times the same lib [as written above] makes py2exe and pyinstaller crash.

    import wx
    from wx import *

    This bug should be submitted somewhere, suddenly I've no time to do that, I hope will report that soon.
    Thanks for help,
    Reguards,
    Luke
    See more | Go to post

    Leave a comment:


  • No problem Kaesar you did much. Is there anyone else who could help me?
    See more | Go to post

    Leave a comment:


  • Yes of course i did, I've even tried to put debugging and what i get is
    Error Loading python25.dll
    [even after replacing it with python's original one]
    -- and when tring to compile on my notebook i get(with debugging)--
    RC: -1 from fatture
    [where fatture is my python main file]
    Do you know what it mean? I googled it but nothing,,,it's strange, I can execute my program and I'm not able to compile!
    ...
    See more | Go to post

    Leave a comment:


  • Any idea ??
    I've tried to comment secondaries class and function to see if it was a stupid problem of encoding but nothing...even if I cut them off...
    Are there any other "compilers" to create exe from py?
    Thanks,
    Luke
    See more | Go to post

    Leave a comment:


  • luke14free
    replied to open file and create file .
    Try with:
    Code:
    tofind="some"
    f=open ("your_db.db","r)
    f=f.read().split('\n')  #change \n with your divisor...
    found=False
    for i in f:
        if i==tofind:
             found=i
             break
    if not found:
            ##no entry has been found, write your code here
    else:
            ##found an entry, write your code here
    See more | Go to post

    Leave a comment:


  • Problem compiling an exe with py2exe and pyinstaller 1.3

    Hello,
    I'm working on a project and I need to compile it to run it on win as an exe.
    I choose pyinstaller to build my exe but after several tries my result is always the same, from my console (win2k - py2.5/2.4) I type:
    Code:
    c:\>cd pyinstaller-1.3
    c:\pyinstaller-1.3>Makespec -w --noconsole ..\\fatture\\fatture.py
    [...]project compiled...now run Build to build (more or less)
    c:\pyinstaller-1.3>Build
    ...
    See more | Go to post
No activity results to display
Show More
Working...