Page 32 of 41

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Sep 10, 2011 10:25 pm
by jedimark
I have no idea why people click on P-Series in the first place.. Add one little convenience, and it becomes a standard.. :}

I just added some basic printing support to SleepyHead. Just a test overview report for now. It's not in it's right place yet.. But I have it putting stuff on paper!

I haven't tested on Windows yet - I'm hoping the "Crashy Snapshots" bug in Qt has been fixed in the recently released version of Qt (4.7.4), as I need this feature to display text in printed graphs.

On Linux & Mac you can also print to PDF.. Windows can also do this if you've got a PDF printer "driver". (I don't know much about them)

The report is made with HTML, and still needs a lot of tweaking as for what to display.. For now it will just be static.. But I do have a neat plan for later on, where you will be able to customize the reports, choosing what graphs to display - to do so you will have to know HTML, and a few simple templating commands. You will be able to share your custom report templates.

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Sep 10, 2011 10:47 pm
by archangle
jedimark wrote:On Linux & Mac you can also print to PDF.. Windows can also do this if you've got a PDF printer "driver". (I don't know much about them)
CutePDF is free and works well for me.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 9:29 am
by jedimark
Hello, I bring fresh goodies.. Well.. For people who don't mind their toys to breaking occasionally..

SleepyHead 0.8.5 alpha preview.

Smaller Binary only (zipped) for those who know what to do with it and already have 0.8.4 (Unzip to your main sleepyhead folder with all the DLL files, replacing the SleepyHead.exe file)
http://sourceforge.net/projects/sleepyh ... p/download (~760KB)

Full version (in zip format) for new users, including DLL's..
http://sourceforge.net/projects/sleepyh ... p/download (~14.5MB)

Whats new?

Overview graphs actually moved to overview tab..
Added a 2 or 3 extra overview graphs that were sorely needed (pressure & leak overview, and a % PB graph for PRS1 users)
New File->Preferences Profile screen, to make your reports show your information.. (Ignore the silly timezone bit, I couldn't get a list yet.. and it's not really needed it anyway.)
Overview page (only) can print a simple report. I tried arch's suggestion above of the free cutepdf software, and it does indeed work.. So, yes, you can make it print to PDF.
Second stage of importing is now multithreaded.. Meaning If you have a dual or quad core cpu, the last bit of importing is a little faster.

Some silly bugs were fixed that I can't remember anything about..
Some new ones were very likely introduced.. It's a fact of life in software development. :}

I _think_ I have worked my way around the openGL qt font crash.. It can only happen during print, so if it crashes when you click the print button, well, that's why..

It will automatically clean up your previous SleepApp machine data, and needs to reimport due to a new summary caching system.
ResMed users, I hope your regularly making a backup copy up your cards to a folder! Your precious waveform data will go bye byes when it gets older than 7 days otherwise.

You may want to make sure multithreading in view menu before importing if the cleanup actually works for once. If this works consistently, it will be permanently turned on for people with multicore cpus. (And I'll speed up the first parts too)

It _should_ in theory keep your journal entries.. (No promises, I've been ignoring the journal feature while working on the other stuff)

Well, that's all for now.. If your not feeling super brave, it may be an idea for wait until there's some reports of success.

Good Luck..

/Mark

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 12:58 pm
by archangle
Looks good. I had to go through the "crash warning-OK" dialog 4 or 5 times, then "Delete old data -yes" twice. After that it works fine.

Thanks.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 1:17 pm
by archangle
Longer term thoughts. Mostly minor tweaks.

1) I wonder if there's a better way to scale the leak graph. As I move from day to day, due to autoscaling, bad days look good and good days look bad. The leak goes from 25 to 60, but it mostly looks nice and smooth.

On a day where I had a few big leaks, the graph is mostly smooth with just a few peaks. On a day where I had no leak problems, the line varies all over the graph vertically and looks bad, but the leak only goes between 25 and 30.

2) Overview looks good. Is "Session time" going to come back?

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 1:22 pm
by archangle
Printing doesn't work for me.

No printers are shown in the print dialog other than "add a printer", which gives the message "Windows can't open "add printer" The local print spooler service is not running. Please restart the spooler or restart the machine."

Going into the Find Printer dialog only shows "networked" printers, and all mine are USB connected.

I'll tinker with my machine and print spooler setting later when I can reboot.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 2:27 pm
by fiberfan
archangle wrote:Longer term thoughts. Mostly minor tweaks.

1) I wonder if there's a better way to scale the leak graph. As I move from day to day, due to autoscaling, bad days look good and good days look bad. The leak goes from 25 to 60, but it mostly looks nice and smooth.

On a day where I had a few big leaks, the graph is mostly smooth with just a few peaks. On a day where I had no leak problems, the line varies all over the graph vertically and looks bad, but the leak only goes between 25 and 30.
One of the few things I like better in ResScan is the leak graph. The line above which a leak will impact therapy is red and that line is always on the graph. Obviously that won't work for other machines. For Sleepyhead, perhaps a user setting of the lowest max to use for the vertical axis on the graph would allow more reasonable scaling when moving though days.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 9:31 pm
by jedimark
archangle wrote:Looks good. I had to go through the "crash warning-OK" dialog 4 or 5 times, then "Delete old data -yes" twice. After that it works fine.

Thanks.
Okay.. Weird..

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 9:36 pm
by jedimark
fiberfan wrote:
archangle wrote:Longer term thoughts. Mostly minor tweaks.

1) I wonder if there's a better way to scale the leak graph. As I move from day to day, due to autoscaling, bad days look good and good days look bad. The leak goes from 25 to 60, but it mostly looks nice and smooth.

On a day where I had a few big leaks, the graph is mostly smooth with just a few peaks. On a day where I had no leak problems, the line varies all over the graph vertically and looks bad, but the leak only goes between 25 and 30.
One of the few things I like better in ResScan is the leak graph. The line above which a leak will impact therapy is red and that line is always on the graph. Obviously that won't work for other machines. For Sleepyhead, perhaps a user setting of the lowest max to use for the vertical axis on the graph would allow more reasonable scaling when moving though days.

I would like to improve this.. The tricky part is how to present the option..

Maybe this might be a reasonable first step: double clicking on the yaxis could alternate between autoscaling and a reasonable preset for each graph?

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 9:38 pm
by jedimark
archangle wrote:Printing doesn't work for me.

No printers are shown in the print dialog other than "add a printer", which gives the message "Windows can't open "add printer" The local print spooler service is not running. Please restart the spooler or restart the machine."

Going into the Find Printer dialog only shows "networked" printers, and all mine are USB connected.

I'll tinker with my machine and print spooler setting later when I can reboot.
What OS is this? (You've probably told me 20 times already, I forget so damn fast, and 32 pages is scary to go through.. :} )

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 9:43 pm
by jedimark
archangle wrote:2) Overview looks good. Is "Session time" going to come back?
Which ones this again? The usage "barchart" that shows when the sessions start and end for each day?

That's coming back soon. I have to rewrite it for the new graphing engine.

the selection time showing in the status bar is something else I miss. it's coming back too when I get around to it.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 9:57 pm
by archangle
jedimark wrote:What OS is this? (You've probably told me 20 times already, I forget so damn fast, and 32 pages is scary to go through.. :} )
Vista 32 bit. I haven't reloaded the OS in a few years, so it's got windows rot pretty bad, so there's a good chance it's me. I can normally print to my printers, though.
jedimark wrote:Which ones this again? The usage "barchart" that shows when the sessions start and end for each day?
This one:

Image

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 10:51 pm
by jedimark
archangle wrote:
jedimark wrote:What OS is this? (You've probably told me 20 times already, I forget so damn fast, and 32 pages is scary to go through.. :} )
Vista 32 bit. I haven't reloaded the OS in a few years, so it's got windows rot pretty bad, so there's a good chance it's me. I can normally print to my printers, though.
Well, it's working on my Vista box with CutePDF.. so quite possible you need to do some updates or something.. I'm impressed you managed to keep windows running that long with needing a reinstall.

We are both thinking of the same graph then.. Hopefully when I reimplement it my head will be clearer this time..

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 11:13 pm
by archangle
jedimark wrote:I'm impressed you managed to keep windows running that long with needing a reinstall.
Me, too. Actually, despite the complaints, I have found Vista to be somewhat less bad than previous versions. I REALLY need to do a reinstall, but it's such a pain to get everything else installed again. I'm considering a new PC because it's going to be so much work to redo the old one.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Sep 11, 2011 11:53 pm
by fiberfan
jedimark wrote:Maybe this might be a reasonable first step: double clicking on the yaxis could alternate between autoscaling and a reasonable preset for each graph?
I like the switch idea though I am not sure the other graphs need it, it would be great for the leak graph.