Notices


Reply
Thread Tools
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#121
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.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#122
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?
__________________
All I want is 40 acres, a mule, and Xterm.
 
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#123
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?)

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.

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:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#124
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.
__________________

Last edited by Wonko; 2010-12-30 at 23:28.
 

The Following 3 Users Say Thank You to Wonko For This Useful Post:
Posts: 24 | Thanked: 33 times | Joined on Dec 2009
#125
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!!
 

The Following 2 Users Say Thank You to m2k For This Useful Post:
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#126
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.)
__________________
Three n900s: One for stable working platform,
One for development testing Chopping Onions
One for saltwater immersion power testing resurrected ! parts scavenging

My Mods for Wonko's Advanced Clock Plugin:
ISO8601 clock mod and Momental_IST clock mod

Printing your Email with the N900
 

The Following 2 Users Say Thank You to theonelaw For This Useful Post:
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#127
Does anyone have other suggestions for new clocks?
(I am thinking of making a few more but temporarily ran out of ideas).
 
Posts: 73 | Thanked: 47 times | Joined on Aug 2010
#128
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?
 
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#129
Wow, apparently over a thousand people have downloaded my binary clock plugin!
 

The Following User Says Thank You to skykooler For This Useful Post:
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#130
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.
 

The Following User Says Thank You to skykooler For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 17:10.