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 12-08-2012, 10:20 PM   #121
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Quote:
Originally Posted by twobob View Post
side issue affecting testing. will test again in AM
Ah okay. I did some testing, and it seems that the .sh script isn't even being called by the kindlet...
qlob is offline   Reply With Quote
Old 12-09-2012, 06:16 AM   #122
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
sounds like permissions? Back later : )
twobob is offline   Reply With Quote
Old 12-09-2012, 04:17 PM   #123
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Removed your master password, but it still unfortunately lingers in that commit... AFAIK there's no way to remove it... Sorry....
qlob is offline   Reply With Quote
Old 12-09-2012, 06:39 PM   #124
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Maybe we should have a seperate public soundkloud repo that sanitized releases and what not can reside in?
qlob is offline   Reply With Quote
Old 12-09-2012, 07:41 PM   #125
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I fully agree with that.

Also I think the issues may have been line ending related.

opening mainmenu.sh with nano revealed DOS line endings for example...

Duh? Why? probably WinScp "getting in the way" again. Silly thing.

I have enclosed a dos2unix to fix this (and any future foofs) natively.

Ooops
Attached Files
File Type: gz dos2unix.tar.gz (331.0 KB, 154 views)
twobob is offline   Reply With Quote
Old 12-09-2012, 07:43 PM   #126
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
I'll run all the fils through that and try again...
qlob is offline   Reply With Quote
Old 12-09-2012, 07:49 PM   #127
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by qlob View Post
Removed your master password, but it still unfortunately lingers in that commit... AFAIK there's no way to remove it... Sorry....
http://stackoverflow.com/questions/4...mmit-on-github

Quote:
First, remove the commit on your local repository. You can do this using git rebase -i. For example, if it's your last commit, you can do git rebase -i HEAD~2 and delete the second line within the editor window that pops up.

Then, force push to github by using git push origin +master.

See http://www-cs-students.stanford.edu/..._and_then_some for more information (i.e. if you want to remove older commits).


but either way
twobob is offline   Reply With Quote
Old 12-09-2012, 07:50 PM   #128
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
you have nano right? just open the two .sh in there and see what it says. (it will warn you the files are DOS ended)

: )

In other news.... Retroweaver and the job of byte-mangling other peoples code

What joy.

Is there like a "Retroweaver Hotwo Guide" "Guide".

That would be great.
Attached Thumbnails
Click image for larger version

Name:	Selection_034.png
Views:	207
Size:	97.7 KB
ID:	97492  

Last edited by twobob; 12-09-2012 at 09:30 PM.
twobob is offline   Reply With Quote
Old 12-09-2012, 11:03 PM   #129
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Spoiler:
Quote:
me@dev /opt/eclipse/Workspace-java/HelloWorld $ ./makekindlet
Buildfile: /opt/eclipse/Workspace-java/HelloWorld/build.xml

build-subprojects:

init:

build-project:
[echo] HelloWorld: /opt/eclipse/Workspace-java/HelloWorld/build.xml

build:

weave:
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/asm-3.1.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/retroweaver-rt-2.0.7.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/java-api-wrapper-1.2.1-SNAPSHOT.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/apache-mime4j-0.6.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/commons-codec-1.3.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/commons-logging-1.1.1.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/httpclient-4.0.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/httpcore-4.0.1.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/httpmime-4.0.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/org.json.jar into /opt/eclipse/Workspace-java/HelloWorld/bin
[unzip] Expanding: /opt/eclipse/Workspace-java/HelloWorld/lib/signpost-commonshttp4-1.2.1.1.jar into /opt/eclipse/Workspace-java/HelloWorld/bin

[retroweaver] Processing 880 classes
[retroweaver] 547 classes weaved.


jar:
[jar] Building jar: /opt/eclipse/Workspace-java/HelloWorld/HelloWorld.jar

BUILD SUCCESSFUL
Total time: 2 seconds

YAY
Spoiler:

now we have a native Java soundcloud API that runs on 1.2 onwards... (I think)

but that actually loaded and ran a
api.login(username,passord) without crying - far as I can tell. (err need to actually add some logging now, err and output... heh)

testing continues... but that is a win


EDIT:

Hemm maybe not:

Quote:
[12/10/12 4:57 AM] Hello, world! (v. 1)

com.cowlark.eventbus.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses
at com.cowlark.eventbus.SimpleEventBus.doFire(SimpleE ventBus.java:232)
at com.cowlark.eventbus.SimpleEventBus.access$0(Simpl eEventBus.java:205)
at com.cowlark.eventbus.SimpleEventBus$1.run(SimpleEv entBus.java:109)
at java.awt.event.InvocationEvent.dispatch(Compiled Method)(InvocationEvent.java:152)
at java.awt.EventQueue.dispatchEvent(Compiled Method)(EventQueue.java:369)
at java.awt.EventQueueProxy.dispatchEvent(Compiled Method)(EventDispatchThread.java:351)
at java.awt.EventDispatchThread.pumpOneEvent(Compiled Method)(EventDispatchThread.java:164)
at java.awt.EventDispatchThread.pumpEvents(Compiled Method)(EventDispatchThread.java:154)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:134)
at java.lang.Thread.startup(Compiled Method)(Thread.java:1065)

Caused by: java.lang.NoClassDefFoundError: java.util.concurrent.locks.Lock
now what might be causing that... hmm

http://bugs.sun.com/bugdatabase/view...bug_id=4764778 this? maybe?

Last edited by twobob; 12-24-2012 at 06:09 AM.
twobob is offline   Reply With Quote
Old 12-10-2012, 05:24 AM   #130
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
^ this - in many different forms lol. sigh
twobob is offline   Reply With Quote
Old 12-10-2012, 07:51 AM   #131
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Hope you can figure it out....
qlob is offline   Reply With Quote
Old 12-11-2012, 05:55 AM   #132
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
okay pursuant to our IRC last night... I tracked down the inotify thing on the kindle 3

[root@kindle root]# finder inotify
Quote:
/proc/sys/fs/inotify
[root@kindle root]# cat /proc/sys/fs/inotify/max_user_watches
Quote:
8192

JNotify Linux support
Spoiler:

Quote:
JNotify Linux API is a thin wrapper around Linux INotify API.
Since Linux INotify API does not support recursive listening on a directory, JNotify add this functionality by createing an INotify watch on every sub directory under the watched directory (transparently). this process takes a time which is linear to the number of directories in the tree being recursively watched, and require system resources, namely - INotify watches, which are limited, by default to 8192 watches per processes.
if you get an exception like :
net.contentobjects.jnotify.linux.JNotifyException_ linux: Error watching /home/omry/file : No space left on device
it means the native inotify watch limit per process has been reached. the solution is to change the limit with a command like this (only root can do it):
echo 32000 > /proc/sys/fs/inotify/max_user_watches
which will set the maximum number of watches per process to 32000
Users of JNotify need to give up some of the functionality of the underlying system, for example, linux supports IN_CLOSE_NOWRITE event, and windows does not, it means JNotify will not support it. JNotify only support events on basic operations. it is, however, possible to use net.contentobjects.jnotify.linux.JNotify_linux class direclty, if you do not care about code portablity. this, however, means you will also no benefit from the clean API of JNotify and not from the recursive listening support.


so I will have a dig into that.

see if we can't tidy up this horrible asynchronous menu issue.

Last edited by twobob; 12-11-2012 at 06:03 AM.
twobob is offline   Reply With Quote
Old 12-11-2012, 10:39 AM   #133
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: Fair warning about inotify: if you intend to use it to watch something on the userstore and expect it to survive past a short time window (meaning through a usb plug/unplug and/or framework restart), prepare to be disappointed .

It's what I had to resort to for the screensavers cover mode on the legacy devices, and I had to pile up a crazy amount of ugly hacks to workaround stuff, because of a wide range of different issues, depending on the device.

* Don't watch on top of fsp, it does crazy things (meaning watch base-us, not us).
* Don't expect it to survive an USBMS switch
* Don't expect it to survive a framework restart
* Don't expect it to survive a suspend
NiLuJe is offline   Reply With Quote
Old 12-11-2012, 10:44 AM   #134
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
inotify also cannot see writes by the framework to the framebuffer. I had to resort to polling for changes by comparing to a framebuffer copy...
geekmaster is offline   Reply With Quote
Old 12-11-2012, 11:50 AM   #135
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
ah. great. : ) Thanks then. sigh...
twobob is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 02:44 AM.


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