Search:

Type: Posts; User: unutbu; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    660

    Re: using python to locate gnome resources

    This code comes from Davyd Madeley's change-background.py script:


    import gconf
    class GConfClient:
    def __init__ (self):
    self.__client__ = gconf.client_get_default ()
    def...
  2. Thread: python question

    by unutbu
    Replies
    8
    Views
    428

    Re: python question

    return is not the same as exit. Unlike exit, a bare return returns the value None, and proceeds to the next command after the function call. So the boldface lines do get executed.
  3. Replies
    278
    Views
    264,718

    Re: Dualboot Two Hard Drives

    lupeatx, unfortunately, I don't know the answer to your problem.
    As you pointed out, it looks like this is a hard drive detection problem, not (at least at the moment) a dualboot/GRUB problem.

    I...
  4. Replies
    25
    Views
    2,268

    [ubuntu] Re: Change root partition from primaty to logical

    ugkbunb, I'd be glad to try to help you, but before we embark on this, please know that
    the method is -- or prehaps more accurately, I am -- a bit error prone. As you can see from this thread, it...
  5. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    Done. :)
    In the new version of the script, "-M" is now a synonym for --match_by_filename.
  6. Replies
    15
    Views
    2,822

    [all variants] Re: can't access to encrypted files

    serpantman, perhaps this will help: http://www.kaijanmaki.net/blog/2009/10/26/recovering-files-from-ecryptfs-encrypted-home/
  7. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    KillaB7, yep, it's that time of year again... tormon needs a new switch!

    Introducing the dulcet-sounding (haha)


    tormon.py --match_by_filename

    When you use this switch, tormon will consider...
  8. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    Hm, this feed appears to be blank for me... :confused:
  9. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    damnandy, I'm going to need some more information to work on this problem.
    Can you send me a link to the rss feed, or use http://paste.ubuntu.com/ to post the contents of an rss feed containing...
  10. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    damnandy, when you try to download multiple files called download.php, is the problem that you only end up with one?
    Or are you ending up with none?
  11. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    mobilediesel, thanks for the kind words and for the suggestion. The script can now handle comments in the rss feed batch file. Comments are any line that begins with a # character.


    Yep, Python...
  12. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    I've added a "-m" flag to the script which adds all torrents/files found to the log of downloaded files.

    When you run


    tormon.py -m -b direct_feeds.txt

    tormon slurps all the .torrents that...
  13. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    I've commented out the "tormon failed to download ..." message.
    The errors are now only in the error log file.
  14. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    LOL, that's a good idea. Thanks KillaB7.

    Now you can create a file with a list of all the rss feeds (urls) you wish to monitor.
    Put one url per line. If you put the list of urls in...
  15. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    KillaB7, yep, you found a bug! It has been fixed.

    abhiroopb, the script now reports each error once and only once. If at some point it succeeds in downloading a file that had failed before, it...
  16. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    Okay, the script now has the the ability to download wmv files from http://revision3.com/diggnation/feed/WMV-Large. To do so, use the command


    tormon.py -f wmv -u...
  17. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    Yes, I changed the script from using beautifulsoup to
    feedparser. I thought I could make the change without affecting anybody, but obviously, I was wrong! (I didn't realize that python-feedparser...
  18. Replies
    13
    Views
    2,954

    Re: Python: file type

    Hi jesuisbenjamin. Does the "file" command return something different? I think "file" and python-magic use the same underlying libmagic library. Unfortunately, that also means the defects of one are...
  19. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    Done. tormon now saves a list of all urls it fails to download. By default the error log file shares the same name as the download log file with ".errors" appended to the end.

    So for example, if...
  20. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    abhiroopb, I made a small change to the script . Now when you abort the program with Ctrl-c, the script updates the log file's the list of downloaded torrents.

    The errors you are seeing, such as
    ...
  21. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    abhiroopb, I was able to reproduce this error by literally running the command you posted.
    The problem, at least for me, was that tormon fails to create the directory /home/user/test/Torrents/Files....
  22. Replies
    70
    Views
    41,369

    Re: Ubuntu 9.04 OpenVZ VPS - Starting at $5/month

    NullHead, according to https://fivebean.com/hosting/:
  23. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    bigben1313, thanks for pointing out the crashing problem. The new script that I posted a few days ago fixes this problem. Now tormon will simply print out a warning like


    tormon failed to...
  24. Replies
    110
    Views
    34,831

    [ubuntu] Re: download torrents from rss feed

    abhiroopb, I haven't been able to reproduce the problem you mention. (Isn't that always the way with programmers? :p ) Do you perchance have a cron job that runs tormon.py multiple times? Each...
  25. Replies
    13
    Views
    2,954

    Re: Python: file type

    Yes. sys.argv is a list of the command and the arguments. For example, if your script says


    print(sys.argv)

    and you run


    test.py file.mp3
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4