Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-12-2012, 11:26 PM   #106
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Now I am REALLY confused about whether or not script files have CRs in them. I just viewed a script file with hexdump in linux and it had only LFs, and I viewed the same file from a shared folder with a windows hexdump utility, and it shows CR/LFs in the file. WTF?

So, I guess I am done chastising people because they cannot get their line-endings right (just like I gave up on saying RTFM). Hmm... things used to be a lot easier before computers starting thinking that they were smarter than me.

Just try googling for info on "alsa sound" -- google decides to show you "also sound" instead because it "knows" what you wanted better than you do.

Anyway, perhaps this auto-conversion thing has to do with the smb/cifs shares I am using for all my kindle stuff, because I do not remember this problem before.

Again, Ehhh, sorry about getting angry because you could not get your uploaded files correct, when they were probably correct all along.

knc1: You reported seeing CRs too... What tools did you use to determine that? Any windows stuff?
geekmaster is offline   Reply With Quote
Old 05-13-2012, 02:20 AM   #107
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
I unpacked archive under linux, and checked by program "vi".

Last edited by Ehhh; 05-13-2012 at 02:38 AM.
Ehhh is offline   Reply With Quote
Advert
Old 05-13-2012, 02:23 AM   #108
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
geekmaster,

did you try to develop eink transform filter with your algorithms? what are the results?
Ehhh is offline   Reply With Quote
Old 05-13-2012, 06:34 AM   #109
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
Anyway, perhaps this auto-conversion thing has to do with the smb/cifs shares I am using for all my kindle stuff, because I do not remember this problem before.
SMB/CIFS (Windows or *nix) considers all payload as binary, although I seem to recall that at least some implementations have an "auto EL feature".
I rarely use CIFS here, so the exact option(s) are buried in my memory from easy recall.

Quote:
Originally Posted by geekmaster View Post
Again, Ehhh, sorry about getting angry because you could not get your uploaded files correct, when they were probably correct all along.
Windows I/O defaults to "cooked" (same as MS-DOS) for any file that it does not recognize as binary.
All applications follow that general rule, except those that try to be "user helpful" by making gratuitous changes.
I.E: "text editors" know they are dealing with "text" and use cooked;
"hex editors" know they are dealing with "binary" and don't use cooked.
Both flavors of gratuitous "user helpers" get it wrong (tm) at times.

*nix (and Linux) systems only support "cooked" in the tty drivers (it is an option, you can view/change with stty).

And it is rare to find an application that is gratuitously "user helpful", but they do occur at times (usually as applications "ported" from a non-*nix system).

Quote:
Originally Posted by geekmaster View Post
knc1: You reported seeing CRs too... What tools did you use to determine that? Any windows stuff?
I do not admit, even among close friends, that I might own a Windows license or two.

knc1 reported that Geany offered to convert the line endings to unix endings.
At which point, knc1 jumped to the conclusion that the file needed conversion.

My Bad;
I did not actually test that offer by exectuting the choice to see if it would have made any changes.
So I now realize that the Geany offer may not have been conclusive that non-unix line endings where present.

@Ehhh This is an example on HowTo not top post. GM has shown you other examples.

Last edited by knc1; 05-13-2012 at 06:38 AM.
knc1 is offline   Reply With Quote
Old 05-13-2012, 11:01 AM   #110
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by Ehhh View Post
geekmaster,

did you try to develop eink transform filter with your algorithms? what are the results?
I looked at your code but I did not change it yet. I started merging my raw2gmv and gmplay programs to get that working first, then I will move the code into the plugin. I will publish my results here.

Very busy lately - sorry...
geekmaster is offline   Reply With Quote
Advert
Old 05-13-2012, 11:09 AM   #111
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
... "hex editors" know they are dealing with "binary" and don't use cooked.
Both flavors of gratuitous "user helpers" get it wrong (tm) at times.
...
@Ehhh This is an example on HowTo not top post. GM has shown you other examples.
I used a hex editor built into a windows "programmer's editor". That programmer's editor offers to convert "Unix" to DOS line-endings if CRs are missing (when loading from a local hard drive). It did not give that warning when loading these scripts from a network share (CIFs on linux). And worse, its built-in hex edit shows CRs. It is not normal for that program to convert unless you say "Yes" to is warning about missing CRs. There was no warning. It does not have a history of auto-converting, so I suspect that the problem is with the CIFS share. Who knows?

P.S. The top-post EXAMPLES were provided by ixtab. I posted links to the RFC and the "why" pages.
geekmaster is offline   Reply With Quote
Old 05-17-2012, 07:38 AM   #112
cyberynight
Junior Member
cyberynight began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2011
Device: Kindle
Hi

How can I start this player on the kindle?
Do I have to create a shortcut with the launcher GUI to start it?
cyberynight is offline   Reply With Quote
Old 05-17-2012, 08:43 AM   #113
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by cyberynight View Post
Hi

How can I start this player on the kindle?
Do I have to create a shortcut with the launcher GUI to start it?
I think that most of us run native mode programs like this from an SSH command line. It should work from a GUI launcher if somebody wants to create a launcher configuration for it. It does not yet have the ability to select the video file to play from its own GUI, so you would need different menu items for each video, or a launcher script that asks you what video you want and passes it to the player on the command line in the script.
geekmaster is offline   Reply With Quote
Old 05-17-2012, 01:24 PM   #114
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Quote:
Originally Posted by geekmaster View Post
I think that most of us run native mode programs like this from an SSH command line. It should work from a GUI launcher if somebody wants to create a launcher configuration for it. It does not yet have the ability to select the video file to play from its own GUI, so you would need different menu items for each video, or a launcher script that asks you what video you want and passes it to the player on the command line in the script.
I am already working on the launcher extension(based of the one bhaak worte for the old HUR). I am finishing it and need some details:
The executable path
The directorry for the videos
The video extension(s)
aditya3098 is offline   Reply With Quote
Old 05-18-2012, 01:36 AM   #115
cyberynight
Junior Member
cyberynight began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by aditya3098 View Post
I am already working on the launcher extension(based of the one bhaak worte for the old HUR). I am finishing it and need some details:
The executable path
The directorry for the videos
The video extension(s)
This is great! Then I will wait, till you release your extension
cyberynight is offline   Reply With Quote
Old 05-18-2012, 04:41 AM   #116
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
I am having trouble with the extension. I managed to compile the extension and made a policy file and then ran
Code:
mntroot rw; cat /mnt/us/extensions/ktplayer/ktplayer.policy >>/usr/java/lib/security/java.policy ; mntroot ro; killall cvm
Not only does the extension not work but it even brakes the launcher i.e if I tap the launcher when the extension is enabled, it doesn't open up. I am attaching the extension and a netbeans project:
Attached Files
File Type: gz KTplayerExtension-src.tar.gz (11.4 KB, 186 views)
File Type: gz ktplayer.tar.gz (2.8 KB, 173 views)

Last edited by aditya3098; 05-18-2012 at 05:01 AM.
aditya3098 is offline   Reply With Quote
Old 05-18-2012, 09:59 AM   #117
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by aditya3098 View Post
I am having trouble with the extension. I managed to compile the extension and made a policy file and then ran
Code:
mntroot rw; cat /mnt/us/extensions/ktplayer/ktplayer.policy >>/usr/java/lib/security/java.policy ; mntroot ro; killall cvm
Not only does the extension not work but it even brakes the launcher i.e if I tap the launcher when the extension is enabled, it doesn't open up. I am attaching the extension and a netbeans project:
The launcher needs cvm. The APPLICATION needs to pause cvm, not the launcher code. It looks like you pause cvm before the app is running.

You could launch a script that pauses cvm, then runs the app, then resumes cvm.
geekmaster is offline   Reply With Quote
Old 05-18-2012, 10:12 AM   #118
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Quote:
Originally Posted by geekmaster View Post
The launcher needs cvm. The APPLICATION needs to pause cvm, not the launcher code. It looks like you pause cvm before the app is running.

You could launch a script that pauses cvm, then runs the app, then resumes cvm.
Okay, so I might be a bit dumb, but I didn't understand that. I don't remember adding anything that stops cvm. This is literally the HackedUpReader extension with some stings changed. And if you're thinking the stuff in the code box, it's just run once. I even rebooted my kindle after that. Did I mess up the manifest or something?

Last edited by aditya3098; 05-18-2012 at 10:12 AM. Reason: typo
aditya3098 is offline   Reply With Quote
Old 05-18-2012, 10:35 AM   #119
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by aditya3098 View Post
Okay, so I might be a bit dumb, but I didn't understand that. I don't remember adding anything that stops cvm. This is literally the HackedUpReader extension with some strings changed. And if you're thinking the stuff in the code box, it's just run once. I even rebooted my kindle after that. Did I mess up the manifest or something?
The code box ends with "killall cvm". I missed that it had no parameters, so instead of pausing it would just do a restart.

I do not know about HackedUpReader, but I do know that ixtab release a new launcher menu for 5.1.0, so you may (perhaps) need different versions for 5.1.0 and for 5.0.x firmwares.
geekmaster is offline   Reply With Quote
Old 05-18-2012, 10:47 AM   #120
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Quote:
Originally Posted by geekmaster View Post
The code box ends with "killall cvm". I missed that it had no parameters, so instead of pausing it would just do a restart.

I do not know about HackedUpReader, but I do know that ixtab release a new launcher menu for 5.1.0, so you may (perhaps) need different versions for 5.1.0 and for 5.0.x firmwares.
The thing is, the same happened to a VERY similar extension I wrote even before 5.1.0 was out.
aditya3098 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle fire not playing midi files jckindle Kindle Fire 3 01-30-2012 01:19 AM
Playing video on Cruz R101 wdadli1 Android Devices 0 12-18-2011 04:47 PM
Playing Zork on Kobo Touch molman Kobo Reader 0 09-09-2011 11:13 PM
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch jbcohen Which one should I buy? 4 06-18-2011 07:58 PM
Cloud Computing - GlideOs & Proper Video Playing & Photo Editing gallantknight01 enTourage Archive 0 04-13-2010 05:15 PM


All times are GMT -4. The time now is 04:20 PM.


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