maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Flip clock pre pre pre pre release (https://talk.maemo.org/showthread.php?t=25582)

qole 2009-07-24 00:04

Re: Flip clock pre pre pre pre release
 
Ok, I fixed the 12 hour clock and number-change-flicker problems...

http://farm3.static.flickr.com/2528/...bbd5529c_o.png

If I get enough interest, I'll make this into a little .deb file that will switch the graphics for you. Then if you want to go back to the original skin, you just uninstall the deb.

EDIT: Oh, this exposes another problem! It looks WEIRD that a tube just "disappears" for hours with no "tens" column.

bilofsky 2009-07-24 00:10

Re: Flip clock pre pre pre pre release
 
Looks good - thanks.

Quote:

Originally Posted by qole (Post 306316)
If you are using the 12 hour clock, I use an awful nixie tube letter P in the tens column to punish you. This probably looks even weirder at around 10pm. Anyone got an actually good idea?

Depends on how compulsive you want to be. (I guess the answer for all of us is "pretty much".) :)

My suggestion would be to let am and pm look the same. Y'know, a lot of us used to use analog clocks (and some still do - sshhhh!). We just had to remember whether it was mid-morning or bedtime. And we could generally figure it out. :) And come to think of it, that was back in the era when nixie tubes were state of the art. So I think that is really the appropriate solution.

EDIT - Looks like you have that one licked, so never mind me.

ciroip 2009-07-24 01:00

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by qole (Post 306327)
Ok, I fixed the 12 hour clock and number-change-flicker problems...
...
...
EDIT: Oh, this exposes another problem! It looks WEIRD that a tube just "disappears" for hours with no "tens" column.

glad you sorted out all the problems: I always feel sorta guilty when someone have issues on something I worked on before... :)

for the disappearing tube a solution could be to just draw a switched off tube on the background (fondo.png).
The original plan for the nixies was to put some weird background and make the tube glass tranparencies do the tricks or replicate the user OS wallpaper to let people personalize the clock (ala window mode)

_____________________________________________
In case anyone is curious to check how open a .png with c and sdl on the tablet here the clock minisource:
https://garage.maemo.org/frs/downloa...lock-0.0.3.tgz

ciroip 2009-07-24 01:07

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by bilofsky (Post 306330)
Depends on how compulsive you want to be. (I guess the answer for all of us is "pretty much".) :)

lol, who are you calling compulsive??

jolouis 2009-07-24 12:47

Re: Flip clock pre pre pre pre release
 
If you want to develop a complete background/different clock layout/etc for the Nixie's then post up all of your image files I can roll it into the latest SVN that has kind of a "themable" structure to it; then a user can access the Nixies by pressing "Day/Night/Nixie" button, just like we do with day/night mode right now; the way I've got the SVN version setup that would be very easy to do...

ciroip 2009-07-24 16:14

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 306404)
...
I can roll it into the latest SVN that has kind of a "themable" structure to it; then a user can access the Nixies by pressing "Day/Night/Nixie" button, just like we do with day/night mode right now;
...

lol, qole just created a new theme scene! Ill see to create a png template or something similar and maybe a python parser to split the pics since I have been so dumb to not use a single 'graphic.png' file.
I think Ill begin to think about make skinnable from the beginning my next apps

silvermountain 2009-07-26 06:55

Re: Flip clock pre pre pre pre release
 
Having a weeeird 'bug'.

It's Saturday evening right now (11:12pm). The date and time is shown accurately on flipclock.

I try to set an alarm for Sunday at 8am and it absolutely refuses to acknowledge it...but if I set an alarm for Monday at 8am it takes it fine and the 'countdown' is just as if it had been on Sunday. Weird.

bilofsky 2009-08-03 14:26

Re: Flip clock pre pre pre pre release
 
My N810 seems to have permanent insomnia.

I turned insomniac mode off in Flip Clock, and even uninstalled it. Still no sleep, and runs the battery down in about 8 hours.

Is it possible that this has something to do with Flip Clock? It started after I used Flip Clock to keep the N810 awake for a battery test.

bilofsky 2009-08-03 21:11

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by bilofsky (Post 308486)
My N810 seems to have permanent insomnia.

OK, here is how to cause the problem.

Put Flip Clock into insomniac mode. Kill the program by pressing the upper button to the left of the screen and tap the X. Now the N810 is stuck in insomniac mode.

To get out of this, bring up the Display settings and restore the Switch off display setting.

jolouis 2009-08-05 14:02

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by bilofsky (Post 308571)
OK, here is how to cause the problem.

Put Flip Clock into insomniac mode. Kill the program by pressing the upper button to the left of the screen and tap the X. Now the N810 is stuck in insomniac mode.

To get out of this, bring up the Display settings and restore the Switch off display setting.

This is an issue because of the way that you killed the app by hitting the X in the top corner instead of using the "exit" button on the flipclock interface. Unfortuantely python doesn't have any way to run code when app is closed through the "X", so flip doesn't get a chance to restore your display settings. If you use the normal exit button this will not happen and all will be good. Sorry for the confusion; future versions of the app hopefully will not have this problem as we're trying to move away from python and it's limitations...

BTW just as an update I did make a new version of the clock that has the Nixie screen built in as well, but the extras-assistant keeps failing to accept my file (not sure if it's just being stupid or what), but if anyone's interested let me know and I'll post up the source tarball on the garage page for you.

silvermountain 2009-08-05 14:20

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 309060)
BTW just as an update I did make a new version of the clock that has the Nixie screen built in as well, but the extras-assistant keeps failing to accept my file (not sure if it's just being stupid or what), but if anyone's interested let me know and I'll post up the source tarball on the garage page for you.

Is that version available for download?
Also, I keep having the issue about not being able to set an alarm for Sundays when I am on a Saturday. Weird.

412b 2009-08-05 14:35

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 309060)
Unfortuantely python doesn't have any way to run code when app is closed through the "X", so flip doesn't get a chance to restore your display settings.

Have you tried using gtk.quit_add()?

attila77 2009-08-06 09:11

Re: Flip clock pre pre pre pre release
 
Another alternative is to use signals:

signal.signal(signal.SIGTERM, handlerfunc)

(not sure it's sigterm but there should be something along those lines)
http://docs.python.org/library/signal.html

jolouis 2009-08-06 15:50

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by silvermountain (Post 309066)
Is that version available for download?

The version with the Nixie screen is now up in Extras and should appear as an update for flipclock. I did not have a chance to get the extra signal handling code in there, as my focus is now on the new C-based version of the app rather than on the current python-driven one.

Not sure about the setting alarm for sunday when it's saturday thing, I'll try to check it out myself at some point as it sounds like a minor bug that probably won't be too hard to fix if I can figure out what's causing it.

silvermountain 2009-08-06 18:46

Re: Flip clock pre pre pre pre release
 
I just downloaded the update from the app manager.
After that i could not run the app from my tablet.
I rebooted and still the same.
I then uninstalled it and reinstalled from the app manager but now the install fails with a 'corrupted installation file' message.

Help I really do like this application and use it every night.

EDIT: I tried installing again and this time it said it installed sucessfully...but the flipclock app is nowhere to be found.
I had it both in personal menu as well as in personal launcher but those icons now does nothing.
I deleted it from those apps and when trying to add it back the flipclock app is not listed as an available app...

Laughing Man 2009-08-06 19:16

Re: Flip clock pre pre pre pre release
 
Yeah, I don't think the icon is there anymore...

When I try to start it from the terminal with the command "flipclock" it reports "open loadopt file: Permission denied"

Nikem 2009-08-06 22:29

Re: Flip clock pre pre pre pre release
 
It looks like package 0.2.4 is not correctly build, the files are not all under /usr (e.g. /usr/lib, /usr/bin, /usr/share) but all in the / directory (/lib , /share, /bin). Maybe someone could build a new deb?
If the files are at the correct location flipclock works but if I open the "second" settings screen (the one without the alarmsettings) I get an exception.
Let's see if flipclock still wakes me up tomorrow morning ... :-)
Edit: Yeah, that still worked, but now after closing flipclock the screen of my N800 still only dims and doesn't turn off. Hopefully that's because of the file-mixup and is solved in the next .deb.

Laughing Man 2009-08-07 04:18

Re: Flip clock pre pre pre pre release
 
Eww, hopefully the fix will remove the /lib, /share/ and /bin directories (they aren't suppose to be in / right?)

Edit: Oops some of those folders are suppose to be there. But yeah, I wonder if I should just remove the misplaced files myself..

silvermountain 2009-08-07 04:45

Re: Flip clock pre pre pre pre release
 
wouldnt an uninstall delete all those file?
i hope so, that way i can do an uninstall of this erroneous one...and do a fresh install once the deb is fixed :)

jolouis 2009-08-07 04:53

Re: Flip clock pre pre pre pre release
 
I had all kinds of oddness getting the autobuilder to take the latest version, so my bet is that something got goofed along the way, but i'll do my best to get it cleared up and updated again tomorrow for everyone! sorry about the mixup!

jolouis 2009-08-07 14:38

Re: Flip clock pre pre pre pre release
 
Okay rebuilt the package properly now, sorry for the mixup; should be showing up in Extras fairly shortly.

Laughing Man 2009-08-07 15:19

Re: Flip clock pre pre pre pre release
 
Will we have to remove the old flipclock files from the messed up install?

jolouis 2009-08-07 15:38

Re: Flip clock pre pre pre pre release
 
Just to be safe I'd recommend uninstalling the old flipclock deb, then install the new one fresh from extras (it should be build 0.2.4-5). This should be done automatically during and upgrade, but just to be safe I'd do it manually.

Laughing Man 2009-08-07 17:48

Re: Flip clock pre pre pre pre release
 
Oops too late (installed flipclock on top of it). Has some minor issues, going try an uninstall and then an install. Does anyone know what files were placed in /bin and other directories that aren't suppose to be there? I can just remove them myself..

Edit: That seemed to have fix the issues I am having. But out of curiousity, on startup I get this prompt "user wallpaper not found" or not recognized or something. I'm guessing because the wallpaper I'm using for the n800 doesn't fit standard Unix naming conventions (e.g. it has spaces?). Doesn't seem to affect anything though.

bilofsky 2009-08-07 21:20

Re: Flip clock pre pre pre pre release
 
The install worked for me after an uninstall.

Quote:

Originally Posted by Laughing Man (Post 309617)
... on startup I get this prompt "user wallpaper not found" or not recognized or something. I'm guessing because the wallpaper I'm using for the n800 doesn't fit standard Unix naming conventions (e.g. it has spaces?

I think so. I got the same message, but it went away when I renamed the background image to remove the spaces.

silvermountain 2009-08-07 21:44

Re: Flip clock pre pre pre pre release
 
Uninstalled the old version.
Installed the new.

A number of issues:

a) I placed the app in the personal launcher. It used to show as a specific icon there - now its a generic icon representing it,

b) Dragging up/down on the clock-display doesn't display the configuration options for me (sometimes it does appear but after a several second delay/freeze),

c) Changing from full screen to minimized and back froze the app twice for me.

d) There is no 'scrolling through of numbers' upon start of the application as there used to be - instead the screen is just dark for a few seconds,

It's basically useless for me at this point.
Is there a way to get hold of the version prior to this one?

ciroip 2009-08-07 21:44

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by bilofsky (Post 309660)
The install worked for me after an uninstall.


I think so. I got the same message, but it went away when I renamed the background image to remove the spaces.

anyway the user wallpaper should be used only as a 'custom' background for the 'windowed mode' (and simulate a sort of fake trasparencies of the application over the desktop). I remember was a 'risky' (and useless :o ) feature so I was smart enough to make the program check and notify the user if something go wrong but not smart enough to give more info...
I always feel sorry to cause unecessary troubles...

bilofsky 2009-08-08 03:03

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by silvermountain (Post 309664)
a) I placed the app in the personal launcher. It used to show as a specific icon there - now its a generic icon representing it,

Both the last version and this one show as generic icons for me in personal launcher and in other menus.

Quote:

b) Dragging up/down on the clock-display doesn't display the configuration options for me (sometimes it does appear but after a several second delay/freeze),

c) Changing from full screen to minimized and back froze the app twice for me.

d) There is no 'scrolling through of numbers' upon start of the application as there used to be - instead the screen is just dark for a few seconds,
I don't see these problems on my N810.

silvermountain 2009-08-08 03:50

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by bilofsky (Post 309760)
Both the last version and this one show as generic icons for me in personal launcher and in other menus.

That's odd, mine was purplish and had a '10' in it or something.

Quote:

Originally Posted by bilofsky (Post 309760)
I don't see these problems on my N810.

Interesting. To start off with do you get the flickering of digits as you got in the old version when you start up this one?

bilofsky 2009-08-08 12:09

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by silvermountain (Post 309762)
Interesting. To start off with do you get the flickering of digits as you got in the old version when you start up this one?

When there is no other app open, it blackens the desktop for about 8 seconds, blanks the entire screen for about 6 seconds, and then runs the flip animation.

With three other apps open, all the same things happen but they take about 7 times as long. Perhaps it is swapping to virtual memory.

Maybe put up a "Loading ..." message?

jolouis 2009-08-08 16:56

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by bilofsky (Post 309804)
When there is no other app open, it blackens the desktop for about 8 seconds, blanks the entire screen for about 6 seconds, and then runs the flip animation.

With three other apps open, all the same things happen but they take about 7 times as long. Perhaps it is swapping to virtual memory.

Maybe put up a "Loading ..." message?

I always have issues with getting the icons in Deb packages to just work properly... but I haven't changed the icon setup between this build and the last one, so maybe you just need a reboot to refresh the icon cache?

As for the load times, that's pretty unusual; are other applications slow to launch as well, or is it just Flip? The initial launch (first time you run it) usually takes a bit of time because python compiles all of the scripts into objects... but once that's done it should load fairly quickly (usually about 3-5 seconds from clicking icon to clock display). Maybe you're out of memory or even flash space so Python doesn't have anywhere to store the compiled object files?

bilofsky 2009-08-08 21:18

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 309856)
... so maybe you just need a reboot to refresh the icon cache?

No, that didn't work. The application launcher still shows a generic icon.

Quote:

As for the load times, that's pretty unusual; are other applications slow to launch as well, or is it just Flip? The initial launch (first time you run it) usually takes a bit of time because python compiles all of the scripts into objects... but once that's done it should load fairly quickly (usually about 3-5 seconds from clicking icon to clock display).
No, if all the apps I mentioned are running, it takes over a minute. With no other apps it is about 15 seconds.

Quote:

Maybe you're out of memory or even flash space so Python doesn't have anywhere to store the compiled object files?
It loads and runs - just slowly.

tjutzu 2009-08-13 09:59

Re: Flip clock pre pre pre pre release
 
I am now having an issue where the whole application get frozen if I try to see any other view than the default one shown when application start with this latest version I installed couple days ago. Even closing the application doesn't work after that. Only way to close the flip clock is kill the python itself.

I didn't had any issues with previous version of flip clock.

I will try to uninstalling and reinstalling the application to see if that fixes the problem.

yukop4 2009-08-13 11:00

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by tjutzu (Post 311452)
I am now having an issue where the whole application get frozen if I try to see any other view than the default one shown when application start with this latest version I installed couple days ago. Even closing the application doesn't work after that. Only way to close the flip clock is kill the python itself.

I didn't had any issues with previous version of flip clock.

I will try to uninstalling and reinstalling the application to see if that fixes the problem.

i have same problem

Nelson L. Squeeko 2009-08-13 11:44

Re: Flip clock pre pre pre pre release
 
At first the icons weren't working on my tablet. I rebooted a couple times I think and nothing changed. I decided to just leave it. They work now though. I think I had to reboot since then, I just didn't check it. The icons should reappear, eventually.

heavyt 2009-08-13 13:28

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by tjutzu (Post 311452)
I am now having an issue where the whole application get frozen if I try to see any other view than the default one shown when application start with this latest version I installed couple days ago. Even closing the application doesn't work after that. Only way to close the flip clock is kill the python itself.

I didn't had any issues with previous version of flip clock.

I will try to uninstalling and reinstalling the application to see if that fixes the problem.

Having the same problem.

jolouis 2009-08-13 14:06

Re: Flip clock pre pre pre pre release
 
Since everyone is having such issues I may just roll the extras version back to the last one that seemed to work better for people; the latest did have some minor changes to things that got sort of half implemented and that may be causing problems now. This should be a short term hold over for everyone; I'm pushing hard to try and get the C-based version up to basic functionality so that you guys can give that one a shot and start testing it as the performance is much better, and since it's a rebuild from scratch it's a little more optimized... If anyone's interested let me know, but at this point I've got the clock interface up and running, just no alarm functionality yet which is my next task...

Ciro, not sure if you've been doing any further development on your end, but if you're interested in seeing where it's at I'm going to do a commit to SVN in about 20 minutes...

nwerneck 2009-08-13 16:16

Re: Flip clock pre pre pre pre release
 
Is there a way to make it automatically increase the system volume before playing the alarm? I usually put the volume low before sleeping, and I don't remember to put it high back again, so when the alarm plays the volume is still low and I can't hear it!...

heavyt 2009-08-13 16:43

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by jolouis (Post 311481)
Since everyone is having such issues I may just roll the extras version back to the last one that seemed to work better for people; the latest did have some minor changes to things that got sort of half implemented and that may be causing problems now. This should be a short term hold over for everyone; I'm pushing hard to try and get the C-based version up to basic functionality so that you guys can give that one a shot and start testing it as the performance is much better, and since it's a rebuild from scratch it's a little more optimized... If anyone's interested let me know, but at this point I've got the clock interface up and running, just no alarm functionality yet which is my next task...

Ciro, not sure if you've been doing any further development on your end, but if you're interested in seeing where it's at I'm going to do a commit to SVN in about 20 minutes...

I am willing to give the C-based version a try.

silvermountain 2009-08-13 18:30

Re: Flip clock pre pre pre pre release
 
Quote:

Originally Posted by Nelson L. Squeeko (Post 311462)
At first the icons weren't working on my tablet. I rebooted a couple times I think and nothing changed. I decided to just leave it. They work now though. I think I had to reboot since then, I just didn't check it. The icons should reappear, eventually.

After a few re-boots the icon did indeed re-appear - AND for some reason I am now getting the initial flickering of the digits upon loading the app (after a good 4-5 seconds of darkness).

It absolutely more prone to freezing and slow behaviour - but it did wake me up this morning so I can't fault it completely.

Wonderful application that I hope to see further developed :)


All times are GMT. The time now is 12:12.

vBulletin® Version 3.8.8