Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 12-09-2009, 06:01 PM   #1
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Recently Used Files

I am working on a hack/patch of the R1.7.1 firmware to allow the storage of recently opened files. Eventually I also want to extend this to open the last document at start-up.
The goal of the first version is to:
- Store all opened documents as short-cuts in a folder called Recent (can be disabled in Settings)
- Optionally show the Recent folder after power-up (instead of the Home-folder).

I am looking for some (brave) volunteers to experiment with the first version so it can also be safely used by less 'technical' users (i.e. find installation and usage problems.) In another thread I already volunteered omro , but his DR is in repair.
I will do the first experiments myself.

Is there anyone interested?
Mackx is offline   Reply With Quote
Old 12-09-2009, 07:11 PM   #2
owl123
Addict
owl123 doesn't litterowl123 doesn't litterowl123 doesn't litter
 
Posts: 233
Karma: 214
Join Date: Nov 2008
Device: iPad, Samsung Galaxy Note
I'd be happy to test it.

BTW. Are you aware of Viacheslav's solution? See http://www.mobileread.com/forums/sho...73&postcount=4. It seems to be a bit limited though.
owl123 is offline   Reply With Quote
Old 12-10-2009, 03:17 AM   #3
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by owl123 View Post
I'd be happy to test it.

BTW. Are you aware of Viacheslav's solution? See http://www.mobileread.com/forums/sho...73&postcount=4. It seems to be a bit limited though.
Thanks,

I hope to find enough time this weekend and beginning next week to do some testing of my own. After that I will give you a ping and send you the changed programs.

I am aware of the solution of Viacheslav, the limitations got me thinking if it would be possible to modify the firmware to overcome the limitations. The big difference is that Viacheslav's solution uses the original firmware, where I am changing the firmware (both ctb and settings applciation).

Both solutions have their pros and cons.
Mackx is offline   Reply With Quote
Old 12-10-2009, 09:17 AM   #4
pthwaite
Fanatic
pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.
 
pthwaite's Avatar
 
Posts: 598
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
I'd have a go too Mackx,
regards
pthwaite is offline   Reply With Quote
Old 12-12-2009, 10:08 AM   #5
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Changes to sources

For those people that want to check the changes I made to the original code to get the initial version of the 'Recent Files'-patch working I attach here my anjuta projects for ctb and settings. (If you want to build/change yourself, you need to use the option --sysconfdir=/etc in the configure call of the ctb!).
Compare them to the 1.7 versions of the code supplied by iRex.

I will sent the binaries to omro, owl123 and pthwaite (my guinea pigs) to do extra testing. If they do not see any strange things I will also post the install files here.

Any comments on the (changed) code is welcome.
Attached Files
File Type: gz ctb_recentfiles_v0.1.tar.gz (1.04 MB, 167 views)
File Type: gz settings_recentfiles_v0.1.tar.gz (894.1 KB, 149 views)
Mackx is offline   Reply With Quote
Old 12-12-2009, 11:51 AM   #6
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Startup behaviour

The functionality I created until now only creates short-cuts for all documents that are started and allows you to start-up, after power-up, on the location where the recent-opened-file-short-cuts are stored.

The next step will be to automatically start with the last read document. I can choose between the following solutions:
1) start only with the document that was 'open' during shutdown.
2) start with the last opened document (whether it was still open at shut-down or not).

The reason that I list the second option is because I normally first close any document that I am reading with FBReader before shutting down (I am not sure if FBReader is storing the read position). The 2nd will also be easier to implement ofcourse... For the fist solution I have to detect if the last opened document is still open.
Should both be implemented with a user choice?

What to do if several documents are open? Detect which document is visible (at the top) and use that one? Open all? What if the folder-view or Settings was the 'top-document'?

And then there is xournal, it can be started as an application directly (so it will not be stored as short-cut) or you can start it with a document (will be stored as short-cut) but change to an other document while opened (will not be detected). So what to do after power-up?
Same is ofcourse valid for FBReader, evince, midori.

Please let me hear your opinion, how should a 'Start Last Document' feature work?

Last edited by Mackx; 12-13-2009 at 04:23 PM. Reason: I types ereader but ment FBReader
Mackx is offline   Reply With Quote
Old 12-12-2009, 12:24 PM   #7
owl123
Addict
owl123 doesn't litterowl123 doesn't litterowl123 doesn't litter
 
Posts: 233
Karma: 214
Join Date: Nov 2008
Device: iPad, Samsung Galaxy Note
Quote:
Originally Posted by Mackx View Post
The functionality I created until now only creates short-cuts for all documents that are started and allows you to start-up, after power-up, on the location where the recent-opened-file-short-cuts are stored.

The next step will be to automatically start with the last read document. I can choose between the following solutions:
1) start only with the document that was 'open' during shutdown.
2) start with the last opened document (whether it was still open at shut-down or not).

The reason that I list the second option is because I normally first close any document that I am reading with ereader before shutting down (I am not sure if ereader is storing the read position). The 2nd will also be easier to implement ofcourse... For the fist solution I have to detect if the last opened document is still open.
Should both be implemented with a user choice?

What to do if several documents are open? Detect which document is visible (at the top) and use that one? Open all? What if the folder-view or Settings was the 'top-document'?

And then there is xournal, it can be started as an application directly (so it will not be stored as short-cut) or you can start it with a document (will be stored as short-cut) but change to an other document while opened (will not be detected). So what to do after power-up?
Same is ofcourse valid for ereader, evince, midori.

Please let me hear your opinion, how should a 'Start Last Document' feature work?
How about creating some short cuts that could be placed in the bottom bar:

1. one could let you close the device normally
2. one could let you close the device as in option #2
3. the last one would bring up all the opened documents after start up
owl123 is offline   Reply With Quote
Old 12-12-2009, 02:30 PM   #8
pthwaite
Fanatic
pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.
 
pthwaite's Avatar
 
Posts: 598
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
I favour the 2nd option with any other documents that were open, being "stored" in the Recent folders.
WRT xournal, I'd like it such that whatever you were working on would start up to continue from where you left off.

(I still cannot get auto-recognition of xournal files to work, but that's another story)

regards
pthwaite is offline   Reply With Quote
Old 12-13-2009, 03:48 AM   #9
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by pthwaite View Post
WRT xournal, I'd like it such that whatever you were working on would start up to continue from where you left off.
There are two part here, Start Last Document can start Xournal. But I also need to change Xournal to store the last opened page and use it when the document is opened. (I am considering to add the this feature, but I am lacking spare time to do so in short future).
Mackx is offline   Reply With Quote
Old 12-13-2009, 06:03 AM   #10
owl123
Addict
owl123 doesn't litterowl123 doesn't litterowl123 doesn't litter
 
Posts: 233
Karma: 214
Join Date: Nov 2008
Device: iPad, Samsung Galaxy Note
I've been testing Mackx's Recent Files patch for some hours now and I'm happy to report that everything works very well!

Thanks!
owl123 is offline   Reply With Quote
Old 12-16-2009, 04:09 PM   #11
jaha
Junior Member
jaha began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2008
Location: Oslo, Norway
Device: iRex DR1000S
Hi,

I am really looking forward to the version with automatic start of last opened document :-)

May I ask you if you know when you are able to provide an installation file with this functionality?

Thank you in advance :-)

Jarle
jaha is offline   Reply With Quote
Old 12-16-2009, 05:16 PM   #12
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by jaha View Post
Hi,

I am really looking forward to the version with automatic start of last opened document :-)

May I ask you if you know when you are able to provide an installation file with this functionality?

Thank you in advance :-)

Jarle
Hi Jarle,

This is a good opertunity to give an update of my progress.

I) I plan to add the functionality in several stages, the first stage is to create short-cuts for all files that have been opened in a specific folder. This feature has three modes:
- disabled: do not create short-cuts
- enabled: store short-cut of all opened files in the 'Recent-folder'
- show: At startup, do not start with the Home-folder, but with the 'Recent-folder'

II) Once this is working, tested and published, I want to add a fourth mode to automatically start ... something... I am choosing between one or more of these:
-a- the last opened document (whether it was open during shut-down or not)
-b- the last opened document that was opened at the moment of shut-down
-c- all documents that were open at the moment of shut-down
-d- An application like mxCalendar

III) Once this is working, I will go crazy adding al kinds of addtions.
- Adding keywords to documents and a view to sort/select with these keywords
- Add an extra icon in the status-bar (right-side) to change the mode for Recent-Files and those mentioned in item III) above.
- Select multiple files to delete (or add keyword)
- Have an extra menu item to add short-cut of document a configurable folder e.g. in the 'Files to Read Queue'-folder.
- add more positions in the left part of the status-bar (for menu-items)
- allow other applications to add icons to right side of statusbar (I would want this for Xournal)
- etc
This should keep me going for 2010...

The status:
The code for the first stage is now under-test by 'my guinea-pigs' owl123 and pthwaite. They gave some very usefull feedback on problems and improvements (and they seem to be pleased with the patch). There is one problem for which I have to find a solution. For some reason when the ctb starts-up with the "Recent-Files"-folder the screen is not updated properly. The screen shows the folder and its content, but it is a little fuzzy, you also still see a fuzzy logo that you normally see during start-up. Due to different timing during startup, a proper refresh of the screen is not executed. This is very difficult (time consuming) to debug, since it only shows on the real device and not on the emulator.

I know that it very dangerous to give release dates on this forum , but I hope that I will find enough time between Christmas and New Year to fix the refresh problem and post the stage I patch on this forum.
(If iRex still decides to create a new firmware update, then I have to wait for them to publish the code for new firmware and apply my patches again...)

PS: If you are very eager to use the update/patch, I could send you a version that has the refresh problem and add you to my 'guinea pig farm'. Send me a PM with your e-mail address.
Mackx is offline   Reply With Quote
Old 12-16-2009, 07:04 PM   #13
tjdean256
Zealot
tjdean256 is on a distinguished road
 
Posts: 138
Karma: 70
Join Date: Jan 2009
Location: Louisiana
Device: irex dr1000s; Pocket edge
Mackx

I am interested in this function, but am not in a position to help with the debugging. But it seemed that this approach would work for a find file utility - populate a folder with shortcuts to files that match a search expression. Is that feasible?

Again, thanks for you work in improving the utility of the DR.

td
tjdean256 is offline   Reply With Quote
Old 12-22-2009, 03:52 PM   #14
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Version 1.0

Hi all,

The last weeks, together with the 'guinea pigs' (owl123, pthwaite, jaha and curbarthedog) , I managed to get a first version of the Recently Used Files patch working, with all obvious bugs removed (many thanks to the 'test guinea pigs').

This version is stage I) as described in earlier posts:
I) The first stage is to create short-cuts for all files that have been opened, in a specific folder. This feature has three modes:
- disabled: do not create short-cuts
- enabled: store short-cut of all opened files in the 'Recent-folder'
- show: At startup, do not start with the Home-folder, but with the 'Recent-folder'

The attached zip file should be unzipped on your SD-card. It will add 2 short-cuts in Home->Documents->Programs->Install:
Apply Recent Files Patch and
Restore Recent Files Patch.
One to install and one to un-install the patch.

Before you try:
THIS PATCH MODIFIES THE FIRMWARE (replaces 'ctb' and 'settings') SO APPLY AT YOUR OWN RISK. ONLY USE FOR VERSION 1.7/1.7.1 OF THE FIRMWARE.

The posted version is used by 5 people, they have not found disturbing problems, but still you should be aware that you are modifying your firmware. Also note that the patched is applied the original versions of the R1.7/R1.7.1 firmware so DO NOT USE when you have another firmware installed!!! If something went really wrong, I have no reason to believe that you would not be able to fix it with a firmware re-install.

Use:
- After the restart, you should go to the settings dialog
- You will see a new icon called "Recent Files" clicking on it gives a new dialog that:
allows you the enable the feature (i.e. enable creation of short-cuts in the folder called Recent)
allows you to enable the feature to show the Recent folder after startup
- The third option can be selected, but will not have any effect...yet...
- The files will be added to the folder: Home->Documents->Recent.
- When you are in the Recent folder and starting short-cuts, the last started will be the first one in the folder after you closed the document.

Known Problems:
- The Recent-Files folder only grows, old files will not be removed automatically.

Please let me know what you think of it (bugs, improvements, other questions, ...)
Attached Files
File Type: zip Recent_Files_v1.0.zip (88.2 KB, 149 views)
Mackx is offline   Reply With Quote
Old 12-22-2009, 03:56 PM   #15
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Source code for Version 1.0

This is the source code for the patch posted above (my Anjuta-projects with some large files removed). You can compare them with the original code that iRex posted on their website.
Any improvements are welcome
Attached Files
File Type: gz ctb_recentfiles_v1.0.tar.gz (622.9 KB, 139 views)
File Type: gz settings_recentfiles_v1.0.tar.gz (611.3 KB, 139 views)
Mackx is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
recently got a nook Vespa Introduce Yourself 11 06-14-2010 09:23 AM
What have you read recently on Smashwords? lilac_jive Reading Recommendations 9 01-12-2010 02:40 AM
Recently bought an Iliad and looking to get the most out of it - can you help? Daedalus iRex 9 10-10-2008 11:16 AM
Movies you've recently seen TadW Lounge 14 09-03-2007 06:25 AM


All times are GMT -4. The time now is 07:10 PM.


MobileRead.com is a privately owned, operated and funded community.