View Single Post
Old 06-03-2009, 09:45 PM   #7
Grimulkan
Lord
Grimulkan has a complete set of Star Wars action figures.Grimulkan has a complete set of Star Wars action figures.Grimulkan has a complete set of Star Wars action figures.Grimulkan has a complete set of Star Wars action figures.
 
Grimulkan's Avatar
 
Posts: 177
Karma: 328
Join Date: Feb 2009
Device: Q1 (on way out), PRS505, DR1000S (dead :<), TC1100 (10'' perfection!)
Quote:
Originally Posted by Avenger View Post
btw is there any other way to pack the images to view on the DRS1000S? Does it make sense to put them in a pdf file and try it or will that just lead to an unwieldy mess to read? I've seen some scripts for other e-readers while browsing through the forum.
You can always pack them into a PDF. For example, ImageMagick has several command line tools to process images and then pack them into a PDF. If you have the full version of Adobe Acrobat, packing images into a PDF is only a right click away. I don't know if this will solve the problem, give it a shot. PDFs are also slower than raw images.

A clunky alternative is to use <img> tags to point to images from a HTML file, and then open it in FBReader. You can then shut down FBReader in case there is a memory leak. You will need to get the image size, margins etc. right in the HTML file though. I find this a little cumbersome, but its faster than the UDS if you manage it.

I haven't had a chance to try and replicate your bug. If the above options don't work, wait for someone to come up with a CBR viewer. I've been working on one for a while now, but my attention has been sidelined by several more interesting projects This just reminded me to get back to it.

Quote:
Originally Posted by Avenger View Post
[...] Only other thing I was thinking if there was a way to run a script that does a "ps -ef", greps the UDS process id and kills it? I know this device runs some varient of Linux but don't know if you can kill a process in this manner.
Great idea! Put this in a .sh script and try it before trying anything else. This works on the emulator, btw, so it should probably work on the DR as well. You'll need to create a .desktop shortcut pointing to the .sh file. Open an existing .desktop file in a text editor if you are unfamiliar with this, the tags are pretty straightforward. There is a detailed explanation in the iRex developer documentation [PDF].

If MackX gets the terminal port working, you can directly use that. For now, you can also use Leafpad to enter bash commands into a script file (say test.sh), create another script to run the script you created (say run-test.sh), and create a .desktop shortcut to run-test.sh (can be done on your computer or also in Leafpad). You can then redirect your output to a file, and then open that file in Leafpad when done. Described here (courtesy scotsman).

Last edited by Grimulkan; 06-03-2009 at 09:49 PM.
Grimulkan is offline   Reply With Quote