Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] Advanced Clock Plugin

    Reply
    Page 13 of 47 | Prev | 3   11     12   13   14     15   23 | Next | Last
    Mentalist Traceur | # 121 | 2010-12-30, 16:12 | Report

    So, skykooler, I found your source code in the .deb file, and it's rather ridiculous just how much cleaner than mine it looks. I don't know if it's more efficient or not, but the fact that I can't even properly understand what the for loops do shows you how abysmal my coding knowledge is. I know what shell and Python stuff I learned out of necessity, but not really the foundational stuff any good coder should know by heart.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Mentalist Traceur For This Useful Post:
    skykooler

     
    geneven | # 122 | 2010-12-30, 17:48 | Report

    This is great.

    I hate digital clocks that tell me it is 08 a.m. rather than 8 a.m.

    Is there a way to get rid of digital clock times starting with zero?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    skykooler | # 123 | 2010-12-30, 18:47 | Report

    Originally Posted by Mentalist Traceur View Post
    So, skykooler, I found your source code in the .deb file, and it's rather ridiculous just how much cleaner than mine it looks. I don't know if it's more efficient or not, but the fact that I can't even properly understand what the for loops do shows you how abysmal my coding knowledge is. I know what shell and Python stuff I learned out of necessity, but not really the foundational stuff any good coder should know by heart.
    Basically I am measuring how much CPU time is taken in .1 second of real time. The potential problem here it that my script takes .1 second at least to execute, even though it is sleeping most of that time, which could lead to a battery drain if the clock were the only app running (does it shut off when the screen is locked?)

    Originally Posted by
    This is great.

    I hate digital clocks that tell me it is 08 a.m. rather than 8 a.m.

    Is there a way to get rid of digital clock times starting with zero?
    Edit one of the source files in /usr/lib/advanced-clock-plugin/clocks. Find where it says str(h).zfill(2) and change that to just str(h). Repeat with the minutes and seconds if desired.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by skykooler; 2010-12-30 at 18:48. Reason: Forgot to give file path
    The Following User Says Thank You to skykooler For This Useful Post:
    Mentalist Traceur

     
    Wonko | # 124 | 2010-12-30, 23:25 | Report

    Well,
    based on the requests in here, I added some more improvements:
    - you get your color setting "by value" back (i.e. you can enter numeric color codes, not in hex but in decimal notation, but I think this should suffice) ,
    - added an option to disable the leading zero padding for numeric values,
    - and fixed a bug in the settings dialog which caused the color not being reloaded correctly.

    The "Pad Numbers with Zeros" setting currently affects everything: hours, minutes, and seconds.
    This is probably too much.
    If you like a more specific behavior let me know.

    Edit: I also added a version of the binary clock which indicated the next alarm time.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Wonko; 2010-12-30 at 23:28.
    The Following 3 Users Say Thank You to Wonko For This Useful Post:
    F2thaK, Mentalist Traceur, skykooler

     
    m2k | # 125 | 2010-12-31, 00:51 | Report

    I greatly appreciate your hard work on this plugin! I share the same suggestion of removing the leading zero for the decimal clock mode. Hopefully, you can apply an option to remove it just for the 'hours'. Thank you guys very much!!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to m2k For This Useful Post:
    theonelaw, Wonko

     
    theonelaw | # 126 | 2010-12-31, 01:13 | Report

    Originally Posted by m2k View Post
    I greatly appreciate your hard work on this plugin! I share the same suggestion of removing the leading zero for the decimal clock mode. Hopefully, you can apply an option to remove it just for the 'hours'. Thank you guys very much!!
    I agree and second the notion of indeed a great work,

    but

    the notion of displaying numbers without leading zeroes is a cosmetic
    that should be an _option_ rather than a default.

    Please don't make that a default.

    (I have made an awful lot of money over the decades sorting
    mangled date-time-stamped data from bizarre formats
    and the thought of discarding leading zeroes in numeric fields
    screeches through my nerves like running fingernails across a chalkboard.
    Just because other peoples shortsightedness has provided me
    with a generously comfortable income does not mean I condone it.)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to theonelaw For This Useful Post:
    Mentalist Traceur, Wonko

     
    skykooler | # 127 | 2010-12-31, 01:52 | Report

    Does anyone have other suggestions for new clocks?
    (I am thinking of making a few more but temporarily ran out of ideas).

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Duy2anh | # 128 | 2010-12-31, 01:52 | Report

    Hi,
    Thank you for the great effort.
    I tried the plugin, very nice indeed. If it works well, it will be a perfect replacement for the builtin clock.
    However, on my N900, the plugin ran well only for several hours, then refused to update the time. When I touch on the status area and go to the clock tab, the builtin clock still shows correct time, but time displayed by the advance clock plugin was stopped a couple of hours before although it still ran.
    The phone got hot, which meant something was hogging the CPU, and indeed, things became so slow.
    I removed the clock pluggin, reboot, and things went back to normal again.
    I used Titan kernel ULV 250 750 at the time. Was that the cause?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    skykooler | # 129 | 2010-12-31, 02:02 | Report

    Wow, apparently over a thousand people have downloaded my binary clock plugin!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to skykooler For This Useful Post:
    theonelaw

     
    skykooler | # 130 | 2010-12-31, 02:03 | Report

    Originally Posted by Duy2anh View Post
    Hi,
    Thank you for the great effort.
    I tried the plugin, very nice indeed. If it works well, it will be a perfect replacement for the builtin clock.
    However, on my N900, the plugin ran well only for several hours, then refused to update the time. When I touch on the status area and go to the clock tab, the builtin clock still shows correct time, but time displayed by the advance clock plugin was stopped a couple of hours before although it still ran.
    The phone got hot, which meant something was hogging the CPU, and indeed, things became so slow.
    I removed the clock pluggin, reboot, and things went back to normal again.
    I used Titan kernel ULV 250 750 at the time. Was that the cause?
    Maybe. Using the default kernel I haven't had any problems.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to skykooler For This Useful Post:
    Duy2anh

     
    Page 13 of 47 | Prev | 3   11     12   13   14     15   23 | Next | Last
vBulletin® Version 3.8.8
Normal Logout