Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-24-2013, 10:11 PM   #31
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
It's tidier than having two archives.

perhaps that would be a "bomb-proof" solution though
twobob is offline   Reply With Quote
Old 02-24-2013, 10:29 PM   #32
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
It's tidier than having two archives.

perhaps that would be a "bomb-proof" solution though
I did have thoughts about how to best do that.

An unusual situation, where the button has files associated with it that the user needs (or should have) but do not seem to deserve any space in the */extensions directory tree.

The rule-set is copyrighted material and licensed to the user.
So they really do need to have a copy of the license in this case.
The registration info on what is being filtered was requested by people on this forum in the past. Seemed a reasonable request.

So the best thing I could think of was two directories - move one, keep one.

Why the license?
Thought no one would ever ask -
Not only are firewall rule-sets an Intellectual Property of significant value - there are actually people who earn a (good) living writing them.
knc1 is offline   Reply With Quote
Advert
Old 02-24-2013, 10:37 PM   #33
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
Yeah, it's a teaser.

for my part I thought the instructions were fine.
That said - the "End User" acceptance phase is always the real test of a methodology.

I thought you just included the license so people could see what a cool name you had

"making a (good) living" - hmm, I have heard of this.
We Morlocks try not to aspire too high
Attached Thumbnails
Click image for larger version

Name:	Selection_234.png
Views:	328
Size:	112.6 KB
ID:	101933  
twobob is offline   Reply With Quote
Old 02-25-2013, 12:11 AM   #34
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 463
Karma: 1477570
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->iOS/L2
I'm sorry, I didn't mean to stir up a discussion over the way the archive was made. I realized my mistake and thought to leave a comment on it for anyone else who might make the same silly mistake.
slantybard is offline   Reply With Quote
Old 02-25-2013, 09:10 AM   #35
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 slantybard View Post
I'm sorry, I didn't mean to stir up a discussion over the way the archive was made. I realized my mistake and thought to leave a comment on it for anyone else who might make the same silly mistake.
If using a GUI interface to the unzip program, that is usually included as a "check box" option (to make a directory the same as the archive name) - just un-check it next time.

But since I claim to know nothing about "applications code" (including GUI interfaces), it really wasn't my area of expertise.

I just had to assume that the end-user knew the result of checking the check box(s) on whatever they are using.
knc1 is offline   Reply With Quote
Advert
Old 02-25-2013, 09:43 AM   #36
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by knc1 View Post
I just had to assume that the end-user knew the result of checking the check box(s) on whatever they are using.
What surprises me, that KUAL now goes into sub-directories if it doesn't find a menu.json? Another way to "fix" this problem is to not hardcode the firewall filter to /mnt/us/extensions/bbb/frags/fw-base.txt, but relative to the script. Change:
Code:
SRC='/mnt/us/extensions/bbb/frags/fw-base.txt'
to (for example):
Code:
SRC=$( cd $( dirname $0 )/../frags; pwd )'/fw-base.txt'
This way it does not have to be installed in /mnt/us/extensions/bbb if one wants to organize their extension folder maybe?
DuckieTigger is online now   Reply With Quote
Old 02-25-2013, 09:48 AM   #37
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
Nope.
Organization of the */extensions tree is the developer's task, not the end-user.

That does not prevent the end-user from changing the organization, just relieves the developer of having to support every conceivable change that end-users might apply to the organization.

If the end-user makes changes, the end-user has to support their own changes.
knc1 is offline   Reply With Quote
Old 02-25-2013, 09:59 AM   #38
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by knc1 View Post
Nope.
Organization of the */extensions tree is the developer's task, not the end-user.

That does not prevent the end-user from changing the organization, just relieves the developer of having to support every conceivable change that end-users might apply to the organization.

If the end-user makes changes, the end-user has to support their own changes.
Fair enough. Have to see how KUAL will change in future - priorities, sorting, grouping - it just going to have to do it without physically moving existing extensions around.
DuckieTigger is online now   Reply With Quote
Old 02-25-2013, 10:49 AM   #39
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 DuckieTigger View Post
What surprises me, that KUAL now goes into sub-directories if it doesn't find a menu.json?....?
Yep. it's in the aloop.sh changelogs "somewhere"


the other stuff is in the pipline
twobob is offline   Reply With Quote
Old 02-27-2013, 05:08 PM   #40
stepk
Groupie
stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.
 
Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
Quote:
Originally Posted by DuckieTigger View Post
Fair enough. Have to see how KUAL will change in future - priorities, sorting, grouping - it just going to have to do it without physically moving existing extensions around.
KUAL looks for valid extensions this way:

1. find all config.xml files under /mnt/us/extensions/ and ./extensions/
1.2. if the current config.xml file doesn't include a "name" property goto 1
1.3. if the "menu" property of this valid config.xml file isn't "json" then goto 1
1.4. if the "menu" property is an absolute path goto 1.5, if it's a relative path make it relative to the location of its config.xml folder
1.5. if the absolute/relative path of this menu.json file is valid process the json file else goto 1

Note: ./extensions in step 1 comes in handy for testing KUAL. Its actual location isn't accessible to end users unless they install usbnetwork.
stepk is offline   Reply With Quote
Old 02-27-2013, 05:32 PM   #41
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 stepk View Post
KUAL looks for valid extensions this way:

1. find all config.xml files under /mnt/us/extensions/ and ./extensions/
1.2. if the current config.xml file doesn't include a "name" property goto 1
1.3. if the "menu" property of this valid config.xml file isn't "json" then goto 1
1.4. if the "menu" property is an absolute path goto 1.5, if it's a relative path make it relative to the location of its config.xml folder
1.5. if the absolute/relative path of this menu.json file is valid process the json file else goto 1

Note: ./extensions in step 1 comes in handy for testing KUAL. Its actual location isn't accessible to end users unless they install usbnetwork.
But the current working directory when called from KUAL is /
I think you should disable that for the release versions -
If that means you have to make a few directories or something else (or conditionalize for testing) then do that.

This is *nix not Windows - "/" and "." are never in the search path for good reasons.
knc1 is offline   Reply With Quote
Old 02-28-2013, 05:54 AM   #42
NullNix
Guru
NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.
 
Posts: 916
Karma: 13928438
Join Date: Jan 2013
Location: Ely, Cambridgeshire, UK
Device: Kindle Oasis 3, Kindle Oasis 1
Quote:
Originally Posted by knc1 View Post
This is *nix not Windows - "/" and "." are never in the search path for good reasons.
. is never in the PATH because it would be a security hole, but this post is the first I've ever heard of anyone suggesting that / should be in the PATH it's not there simply because there's nothing in / itself that anyone would want to run. No security hole, just efficiency.
NullNix is offline   Reply With Quote
Old 02-28-2013, 06:30 AM   #43
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 NullNix View Post
. is never in the PATH because it would be a security hole, but this post is the first I've ever heard of anyone suggesting that / should be in the PATH it's not there simply because there's nothing in / itself that anyone would want to run. No security hole, just efficiency.
What post? who is suggesting that? knc1 certainly isn't suggesting / should be, quite the opposite.

and - for the record... all my kindles do have a file that lives on / called WHAT...

[root@kindle root]# cat /WHAT
Quote:
Kindle 3!
Not that I am saying for a second that is "good practice".

If you mean: "there's nothing in / itself that anyone would want to run BY DEFAULT" then I fully agree : )

perhaps a more sensible default path could be arranged... Any suggestions?
twobob is offline   Reply With Quote
Old 03-01-2013, 06:40 PM   #44
stepk
Groupie
stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.
 
Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
Quote:
Originally Posted by knc1 View Post
But the current working directory when called from KUAL is /
I think you should disable that for the release versions -
If that means you have to make a few directories or something else (or conditionalize for testing) then do that.

This is *nix not Windows - "/" and "." are never in the search path for good reasons.
I will check.
BTW, I pushed the source earlier today, but I don't think twobob has built yet.

edit: you're right, it's / - I'm going to fix it and push again.

edit2: fixed, pushed.

Last edited by stepk; 03-01-2013 at 07:11 PM.
stepk is offline   Reply With Quote
Old 03-01-2013, 10:18 PM   #45
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 stepk View Post
I will check.
BTW, I pushed the source earlier today, but I don't think twobob has built yet.

edit: you're right, it's / - I'm going to fix it and push again.

edit2: fixed, pushed.
You are right I hadn't noticed...

but I have now

but if you look in https://bitbucket.org/twobob/kual-system you will probably see where today went.

Including the EXTREMELY AWESOME new busybox in there.

If I NEVER have to do that config again? it will be WAY too soon.

Will delve into your commit. Thanks mate.
twobob is offline   Reply With Quote
Reply

Tags
firewall, kual extension

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KUAL: Kindle Unified Application Launcher (v2.7) twobob Kindle Developer's Corner 2316 03-27-2024 06:23 PM
KUAL DateTime Button knc1 Kindle Developer's Corner 65 11-17-2023 01:16 PM
A helpful list of Extensions for KUAL twobob Kindle Developer's Corner 135 01-23-2023 11:20 PM
[KUAL] Button Def. Packages (SUPERSEDED) knc1 Kindle Developer's Corner 6 09-27-2013 07:56 PM
HELP ME - with data for Big Brother Blocker (BBB) knc1 Kindle Developer's Corner 12 02-11-2013 08:58 PM


All times are GMT -4. The time now is 09:05 AM.


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