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 09-30-2013, 08:39 PM   #16
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: 6299993
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
it uses a tiny amount to determine if the title is of interest. Weeny.

Only when a title does not match does it consume significant resources and only then until the title is renamed.
twobob is offline   Reply With Quote
Old 09-30-2013, 10:36 PM   #17
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
Nothing to un-patch when the application closes.
Its windows (and their titles) are gone bye, bye
knc1 is offline   Reply With Quote
Advert
Old 09-30-2013, 11:31 PM   #18
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: 6299993
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 knc1 View Post
Nothing to un-patch when the application closes.
Its windows (and their titles) are gone bye, bye
right.

and until another title comes along... it does nothing.
other than check it should ignore the "base" stuff.

There may be apps that don't follow the windowing convention.
And get "fronted by other means" that I didn't check for.

Happy to fixup w/e is needed.

In the main this is a dev tool for now.
"Should we even bother to patch the titles... Let's check with fronter..."
twobob is offline   Reply With Quote
Old 10-01-2013, 05:26 AM   #19
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
So, by now, I'll restart the system and leave it off. If some app will be made that can't work without it and that i really need, I will rethink about leaving it on...

Thanks for explainations!
Aeris is offline   Reply With Quote
Old 10-01-2013, 07:15 AM   #20
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
You run the KUAL button, Awesome will restart... after that any apps you start that dont have correct titles (L:Blah...) will be automagically renamed on-the-fly until you reboot.


Well that's it. feel free to IMPROVE THIS. Please.
Interesting idea!

Wouldn't it be enough to substitute custom app name with proper one within lua script instead of running external script and changing it with xdotool? I mean to deceive layer manager without really changing the name.

I did a very simple test which works. I just checked simple "hello world". I am not sure what would happen with multiwindow apps. But it still might be possible to handle within lua script.

EDIT: Tried gtactoe. Seems it works for simple apps with dialog windows.

Code:
--- awesome/lab126LayerLogic.lua.org
+++ awesome/lab126LayerLogic.lua
@@ -132,7 +132,13 @@

     -- validate
     if str == nil or not stringStartsWith(str, "L:") then
-        return nil
+        if str == nil or string.match(str,"(webreader|pillowd|kb)") then
+        	log ("FRONTER Skipping: ".. tostring(str))
+        	return nil
+        else
+        	log ("FRONTER Renaming: ".. tostring(str))
+        	str = "L:A_N:application_ID:test"
+        end
     end

     local entries = {}

Last edited by baf; 10-01-2013 at 07:54 AM.
baf is offline   Reply With Quote
Advert
Old 10-01-2013, 10:43 AM   #21
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: 6299993
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
Superb feedback as ever baf.

I just suck bigstyle at LUA. but now you have given me inspiration I shall get right on that!

err... In two days when I return from my trips to the wilderness
twobob is offline   Reply With Quote
Old 10-01-2013, 11:04 AM   #22
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 twobob View Post
err... In two days when I return from my trips to the wilderness
That island is so small, all you should need is a long extension cord.
knc1 is offline   Reply With Quote
Old 10-01-2013, 11:20 AM   #23
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
err... In two days when I return from my trips to the wilderness
Kindle awesome is wilderness.
baf is offline   Reply With Quote
Old 10-01-2013, 12:14 PM   #24
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: 6299993
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 baf View Post
Kindle awesome is wilderness.
HAAHHAHAHAHAHAHAHAaahahahahahahahahahahah



so true
twobob is offline   Reply With Quote
Old 10-01-2013, 12:15 PM   #25
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: 6299993
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 knc1 View Post
That island is so small, all you should need is a long extension cord.
You guys are cracking me up
twobob is offline   Reply With Quote
Old 10-10-2013, 11:59 PM   #26
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: 6299993
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
so I got round to testing this.

1st time round my kindle threw a complete wobbler... (webreader went crazy )
so I simply unmounted (via ssh)
umount /etc/xdg/awesome; killall -9 awesome

and ran the

/mnt/us/extensions/fronter/arch/mount.sh
via ssh

seemed happier.
no, it didnt, kept dying on me... hmm

Will test more but I like this solution.

: ) Thanks baf.

Last edited by twobob; 10-11-2013 at 10:39 AM.
twobob is offline   Reply With Quote
Old 10-11-2013, 11:06 AM   #27
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: 6299993
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 so I get that we are calling

http://www.keplerproject.org/lualogging/manual.html

but... log ("FRONTER Renaming: ".. tostring(str))

err where does that log to?

damned if I can find it.

do I need to manually set/elevate the logging level?
twobob is offline   Reply With Quote
Old 10-11-2013, 07:03 PM   #28
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: 6299993
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 think with a bit of extra love...
This could be useful.

There are still situations where a program could open a window that is STUPIDLY large (QT ABOUT I'm looking at you)

so... to remedy this I propose a sentinel process that monitors the logs for double tap (or maybe pinching..) that IDEALLY would fire up a dialog requesting the the users permission to close out the application (failsafe)

however... In the absence of such a process...

The following bit of code could at least provide a monitor to "close out" (I.e. exit) badly behaving apps...
Code:
echo "" > /var/log/messages; \
showlog -f  | awk '$0 ~ /.*GestureEngine*./ {print $6,$7}'
TAP then release gives
1 down
1 up


Two finger tap then release gives
2 down
2 up


Various double finger pinch/zoom swipes:

9 down
9 up
7 up
7 down
8 down
8 up


So I will look to create a sentinel process that kills off the last registered (or perhaps ACTIVE WINDOW) for these worst case scenarios)

Other than that - very happy now

of course this does mean that apps that EXPECT pinch will be affected but unless someone has a better idea... This is what I have.

Last edited by twobob; 10-11-2013 at 07:06 PM.
twobob is offline   Reply With Quote
Old 10-11-2013, 07:23 PM   #29
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: 6299993
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
echo "" > /var/log/messages; \
showlog -f | awk '$0 ~ /.*GestureEngine*./ {print $6,$7}' |\
awk ' /2 up/ { system("xdotool getactivewindow windowkill") } '



perhaps...

Last edited by twobob; 10-11-2013 at 07:29 PM.
twobob is offline   Reply With Quote
Old 10-12-2013, 08:09 AM   #30
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: 6299993
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
Two finger kill. sentinel process

Code:
echo "" > /var/log/messages; showlog -f  2>/dev/null  \
| awk ' $0 ~ /.*GestureEngine*./ && $6=="2" && $7=="up" {system("xdotool getactivewindow getwindowname ")}  ' \
|  awk ' !/L:*.|webreader|kb|pillowd/ \
{system("xdotool getactivewindow windowkill ")}'

Last edited by twobob; 10-13-2013 at 12:50 PM.
twobob is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanned text pdf with OCR but graphical layer instead vectorial whopper PDF 2 09-10-2011 06:32 PM
Hacker friendly soul_rebel Which one should I buy? 12 02-13-2011 09:34 PM
Life Found in the Deepest layer of Earth's Crust kennyc Lounge 0 11-19-2010 05:02 PM
Best firmware for Hanlin V5 aka Bebook Mini aka Papyre 5.1? javimm HanLin eBook 1 01-11-2010 05:37 PM


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


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