Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34

Thread: Who can drop few lines of code?Send you beer!

  1. #31
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Who can drop few lines of code?Send you beer!

    Ah, that beer hit the spot! I think I understand what the problem is now. Starting the rain plugin resets xidle to 0. How about try this modified version:

    http://ubuntuforums.org/showpost.php...4&postcount=18

    If it works, you can eliminate all the print statements. If it doesn't work, please post the output again.

  2. #32
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Smile Re: Who can drop few lines of code?Send you beer!

    Perfect!

    Unutbu,
    that was awesome.In combination with kind of wet backround image its a fantastic screensaver.Too much ugly hacking to publish in the forum?I am shure a few more people would like it..

    So if you don't bother getting small wooden box with bottle of rare beer,pm
    me delivery address.Would be a pleasure to me.
    Thank you for your patience and time!

  3. #33
    Join Date
    Apr 2009
    Beans
    31
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Who can drop few lines of code?Send you beer!

    I am trying to get this work on 10.04 but when I run Idlerain.py
    Code:
    leb@leb-laptop:~$ ~/bin/idlerain.py
    /bin/sh: xidle: not found
    Traceback (most recent call last):
      File "/home/leb/bin/idlerain.py", line 16, in <module>
        idle=get_idle_time()
      File "/home/leb/bin/idlerain.py", line 8, in get_idle_time
        return float(proc.communicate()[0])
    ValueError: empty string for float()
    leb@leb-laptop:~$
    When I run xidle, I get.
    Code:
    leb@leb-laptop:~$ ~/bin/xidle
    0.006000
    Any Help would be appreciated.

    EDIT Never mind I got it. The error /bin/sh: xidle: not found should of told me to put the xidle in ~/bin/sh which made it work like a charm
    Last edited by Caleb.Robertson; July 5th, 2010 at 12:50 AM.

  4. #34
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,734
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Who can drop few lines of code?Send you beer!

    Please don't reply on old threads. It is much better to create a new one. Feel free to link this one if you want.

    From the Ubuntu Forums Code of Conduct.
    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
    Thread Closed.

Page 4 of 4 FirstFirst ... 234

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •