![]() |
#76 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Looking at adding a checkbox type to the UI. (see above TODO) |
|
![]() |
![]() |
![]() |
#77 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
parse.sh
Quote:
Spoiler:
Last edited by stepk; 01-21-2013 at 09:44 AM. Reason: make output fully compatible with the format that the current downstream code expects |
|
![]() |
![]() |
Advert | |
|
![]() |
#78 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
the code is being refactored by Ixtab as we speak. I promisd not to make changes for 24 hours to the GIT. that said. if you have a tidier (and you seemingly do) way of grabbing out the values you want to see in labels.
Then provide the code. the bits to grab whatever section you want. Bear in mind in places there may be multiple interations going on. As long as adding a call for a label doesn't affect the total looping then fine. basically whatever you want adding has to just "drop in". But I assume you are running ./parse.sh manually and checking the output. Do do that. When the time comes I will add those as options to the button label generator code. possibly tomorrow assuming you come up with the goods you want amending. Tested. ![]() It can easily be improved upon I never pretended to be a great programmer ![]() Last edited by twobob; 01-21-2013 at 09:46 AM. |
![]() |
![]() |
![]() |
#79 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Feel free to improve the rest ![]() |
|
![]() |
![]() |
![]() |
#80 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,763
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
|
fixed
Last edited by DuckieTigger; 01-21-2013 at 06:44 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#81 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
will tidy up for next time, I'm not sure what was supposed to be missing but if its critical I'll fix it. Thanks ![]() |
|
![]() |
![]() |
![]() |
#82 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Signature Files
Since gnupg tools really don't care about the extension, just the header . . .
Since the *.asc (ascii armor version for posting on 'net) is indeed a text file . . . Until the forum post attachment filter is fixed to allow *.asc, just rename them *.txt - that should work for now anyway. The end-users only need one copy of the author's gpg key - Which they can get here: http://drpbox.knetconnect.com/mr-keys/ Those are the "ascii armor" version of each author's public key. @twobob: When fixing up the top post attachements you can remove that key file from the signatures zip file - no longer needed there now. thanks. |
![]() |
![]() |
![]() |
#83 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Thanks |
|
![]() |
![]() |
![]() |
#84 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
@DuckieTigger.
Perhaps you are reading something in my post I did not.? Quote:
EDIT: Ah right the tar.gz had one of the menus with an extra entry and a mislabelled header. Thanks. I missed that. The perils of manual editing. Appreciate the assist. Last edited by twobob; 01-21-2013 at 08:39 PM. Reason: Found the mistakes. duh. |
|
![]() |
![]() |
![]() |
#85 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
![]()
twobob, I can't offer a pluggable replacement, I worked on an alternative parsing approach instead. The attached aloop.sh should more or less replace parse.sh with some plumbing on your part. It should be easy for you, easier than my trying to second guess some parts of parse.sh.
aloop.sh uses no external commands to parse json data. It's all pure shell. It's fast. It's here for your take. No offense taken if you turn it down. If you want I could work on interfacing this module to downstream code, but I probably need some overall design info/documentation - I don't want to guess what you and ixtab have in mind. File aloop.sh is the script. Instructions at top of file. File aloop.out shows a run on my extensions folder - the list of parsed json/xml data as a set of sh variables. P.S. helper/menu.json 411 entry has a typo, a [ instead of a { Last edited by stepk; 01-22-2013 at 05:19 AM. Reason: attach files |
![]() |
![]() |
![]() |
#86 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 cool work you.
![]() Will give this a workout. Much obliged!! EDIT: Updated the helpers to not have bad bracket. thanks. Last edited by twobob; 01-22-2013 at 07:27 AM. |
![]() |
![]() |
![]() |
#87 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Define: local IFS Which should be supported in ASH, same as in BASH although I did not test it in Kindle-Busybox builds. |
|
![]() |
![]() |
![]() |
#88 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
thanks Knc! read over...
http://bash.cyberciti.biz/guide/$IFS and some of http://tldp.org/LDP/abs/html/ and did Quote:
Last edited by twobob; 01-22-2013 at 08:16 AM. |
|
![]() |
![]() |
![]() |
#89 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
Define as local what for? I mean what's your concern if it isn't defined as local? IFS is a special shell variable, local or global it affects the way sh works. Note that json_parse sets it the resets to its default value when it's finished.
|
![]() |
![]() |
![]() |
#90 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Fair enough.
I do have one question. for $json_action I was ensuring before that all paths were fully Qualified by checking for the existence of $1 (/mnt/us/extensions/<appname>) and adding it if missing... would that be a quick fix? Other than that I am ready to drop this in for testing. EDIT: so to confirm what I mean there $json_action should always return the fully qualified path. Many many thanks. |
![]() |
![]() |
![]() |
Tags |
kindle touch, kindle touch hacks, kindlet, kual, launcher, launcher add-ons, paperwhite, sqlite, unified |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Launcher icon for KUAL? | Aeris | Kindle Developer's Corner | 32 | 04-01-2021 07:57 PM |
kite: kindle 3 application launcher | fbdev | Kindle Developer's Corner | 86 | 10-18-2017 10:19 AM |
[KUAL]Kindle reflective screen loader | icantbebothered | Kindle Developer's Corner | 26 | 10-27-2013 09:08 AM |
Kual shortcut for hidden image viewer (Kindle Touch & PW) | Aeris | Kindle Developer's Corner | 0 | 10-12-2013 05:09 AM |
application launcher for kindle 3 (kite) | fbdev | Kindle Developer's Corner | 21 | 05-04-2012 06:02 PM |