Re: [opensource-dev] New HTTP Library & Project Viewer

2012-08-03 Thread Robert Martin
One side bar to this is the problem of what order textures are being fetched
Is the order still by oldest texture first or has that been fixed to
nearest texture first??
( it would help the expedience if the avatars textures were loaded
first and then the stuff near to the avatar was loaded [followed by
everything else])
-- 
Robert L Martin
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] New HTTP Library & Project Viewer

2012-08-03 Thread Kadah
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Oldest and nearest are different classes of things, but given the
context, I'm going to guess you meant far to near.

The texture priority is determined within the viewer, and, in theory
(and my understanding of code last time I worked around it), gives
higher priority (fetch and decode) to textures that has higher visual
impact, eg. larger area on screen.

The loading far vs near you mention is object loading, which, to my
understanding, is controlled by the sim via the "interest lists".
These will be getting updated as a later part of this project, or
another, I think.


On 8/3/2012 6:05 AM, Robert Martin wrote:
> One side bar to this is the problem of what order textures are
> being fetched Is the order still by oldest texture first or has
> that been fixed to nearest texture first?? ( it would help the
> expedience if the avatars textures were loaded first and then the
> stuff near to the avatar was loaded [followed by everything else])
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQHBGFAAoJEIdLfPRu7qE2W4sIAMMIszCBoYLT8Kx2yCKsN6Pr
yEDC0r1Y+uNjfvQo3XuE8prtOa75HhvImmVrAQnYSjXr1Fvmg9YTcGxbg4INTuM/
tFLxK3iSM36U0tJlEzrGZCB+xAh1fvrmNfM8HO+f8xz4KkBcuYnGL1fZMCqH4OIu
GWn0UKQTYPYmTBo9LVR759q3CK06Hz/4RtFIBebg2B0IMQHHErE7rgZ+eEPAL7dK
gJIi43V1HLAuy3VIkadWp//Nou07iWmmh/FfdtWCbPawrgbhmSDxkwejYqIgugcy
ihaI2kcxeqiP6mu3E/A7LqEFL5iXDecDyFy9oyyWtxwAcm/5iUmOikLeRIoXUms=
=G+lg
-END PGP SIGNATURE-
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


[opensource-dev] XUI Cleanup Project

2012-08-03 Thread Kadah
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This weekend I was working on some XUI files and my OCD (I don't
actually have OCD) was getting very frustrated over the random
formatting, lack of consistent indentation, trailing whitespace,
random/missing newlines and wildly differently sorted arguments.
Usually I'd either completely retab the file or give up, but I was
lazy and tired of not doing anything. So needless to say I got nothing
done on in XUI and spent the few days writing a script to reformat XUI
files to some level of code standards.

There is no XML code standards on
http://wiki.secondlife.com/wiki/Coding_standard
So I used my own, which were as such:
* Unix EOLs
* Child elements indented +4 spaces
* Each argument on onw line and indented +1
* Arguments sorted by defined list then alpha order
 (eg. 'name' and composting before random control specific args)
* Comments must be preserved

Initially I looked for existing tools/libs that can do XML cleanup,
but I had the same results I found the last time I looked, that none
of them could cover all the requirements. Surprisingly comment support
was actually hardest to find support for, unsurprisingly argument
sorting is extremely uncommon and the ones that did were poor.
After that I attempted to find an XML lib for parsing, but found that
pretty much all of them did not support comments or the tabled output
was unstable.

So I ended up writing the XML parser and reserializer myself.
Everything appears to output correctly, but I lack a diff tool that
supports XML to be able to do verification. The text diff tools I'm
familiar with can only do word/character comparisons and the reordered
args, and sometimes drastically improved whitespace, make manual
checking tedious.

So does anyone know of a, preferably, open source XML diff tool?

I'm guessing it could be possible to extract some of the XML/XUI file
parsing from the viewer and make one, but it would be a pain in the rear.


If this works out, I'll release the scripts (MIT licensed), and submit
the requisite jira/RB to push upstream XUI cleaned up, which would be
really nice.

Samples:
Input:
http://hg.secondlife.com/viewer-release/raw/24c6da14256c/indra/newview/skins/default/xui/en/panel_preferences_general.xml
Output: http://pastebin.com/9K40N49w

Input:
http://hg.secondlife.com/viewer-release/raw/24c6da14256c/indra/newview/skins/default/xui/en/menu_login.xml
Output: http://pastebin.com/i16De7xU

- -Kadah
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQHFGJAAoJEIdLfPRu7qE2jtwIAKFh7Xe7GJD97ar9kuaQAx13
Iaj8ZaRB9HVfjdOiJJiT6aaTodEag0B23i19WH0fvq23kgZOGzXgiUppsw3TeiLr
eTX0bnct/CqmTDx+afYJY9QExhb0osC8FuFzjxVld6KtQk46Wn6a58ljNvyc459e
ySBCUgoivg+1oa5XqPP2UmUHE5OK0oqnhALKEfcLpW0AFpbv1yLzrJNEZYE3iIRn
3/g0mAhcpMtC6Um8XjR3+l/lTi50iTz2T5APnxWX8LNepwOvT2muffHgwGDGRwCt
6/e1SZjP9AI4hfVf4HM7Rn0JIc87Vp3zODf5KtCsw93er0Qmhi99OBZfn8DriXI=
=GHbm
-END PGP SIGNATURE-
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] XUI Cleanup Project

2012-08-03 Thread Richard Nelson
There is already code to round-trip XUI files through the param block  
mechanism such that invalid attributes and default values are dropped and  
formatting is normalized.  That code hasn't been exercised in a few years,  
though, so it probably won't run correctly right away, but it does provide  
a mechanism for keeping XUI files in line with changing param block schema  
going forward.

R.

On Fri, 03 Aug 2012 15:32:41 -0700, Kadah  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> This weekend I was working on some XUI files and my OCD (I don't
> actually have OCD) was getting very frustrated over the random
> formatting, lack of consistent indentation, trailing whitespace,
> random/missing newlines and wildly differently sorted arguments.
> Usually I'd either completely retab the file or give up, but I was
> lazy and tired of not doing anything. So needless to say I got nothing
> done on in XUI and spent the few days writing a script to reformat XUI
> files to some level of code standards.
>
> There is no XML code standards on
> http://wiki.secondlife.com/wiki/Coding_standard
> So I used my own, which were as such:
> * Unix EOLs
> * Child elements indented +4 spaces
> * Each argument on onw line and indented +1
> * Arguments sorted by defined list then alpha order
>  (eg. 'name' and composting before random control specific args)
> * Comments must be preserved
>
> Initially I looked for existing tools/libs that can do XML cleanup,
> but I had the same results I found the last time I looked, that none
> of them could cover all the requirements. Surprisingly comment support
> was actually hardest to find support for, unsurprisingly argument
> sorting is extremely uncommon and the ones that did were poor.
> After that I attempted to find an XML lib for parsing, but found that
> pretty much all of them did not support comments or the tabled output
> was unstable.
>
> So I ended up writing the XML parser and reserializer myself.
> Everything appears to output correctly, but I lack a diff tool that
> supports XML to be able to do verification. The text diff tools I'm
> familiar with can only do word/character comparisons and the reordered
> args, and sometimes drastically improved whitespace, make manual
> checking tedious.
>
> So does anyone know of a, preferably, open source XML diff tool?
>
> I'm guessing it could be possible to extract some of the XML/XUI file
> parsing from the viewer and make one, but it would be a pain in the rear.
>
>
> If this works out, I'll release the scripts (MIT licensed), and submit
> the requisite jira/RB to push upstream XUI cleaned up, which would be
> really nice.
>
> Samples:
> Input:
> http://hg.secondlife.com/viewer-release/raw/24c6da14256c/indra/newview/skins/default/xui/en/panel_preferences_general.xml
> Output: http://pastebin.com/9K40N49w
>
> Input:
> http://hg.secondlife.com/viewer-release/raw/24c6da14256c/indra/newview/skins/default/xui/en/menu_login.xml
> Output: http://pastebin.com/i16De7xU
>
> - -Kadah
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.17 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJQHFGJAAoJEIdLfPRu7qE2jtwIAKFh7Xe7GJD97ar9kuaQAx13
> Iaj8ZaRB9HVfjdOiJJiT6aaTodEag0B23i19WH0fvq23kgZOGzXgiUppsw3TeiLr
> eTX0bnct/CqmTDx+afYJY9QExhb0osC8FuFzjxVld6KtQk46Wn6a58ljNvyc459e
> ySBCUgoivg+1oa5XqPP2UmUHE5OK0oqnhALKEfcLpW0AFpbv1yLzrJNEZYE3iIRn
> 3/g0mAhcpMtC6Um8XjR3+l/lTi50iTz2T5APnxWX8LNepwOvT2muffHgwGDGRwCt
> 6/e1SZjP9AI4hfVf4HM7Rn0JIc87Vp3zODf5KtCsw93er0Qmhi99OBZfn8DriXI=
> =GHbm
> -END PGP SIGNATURE-
> ___
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/OpenSource-Dev
> Please read the policies before posting to keep unmoderated posting  
> privileges
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] New HTTP Library & Project Viewer

2012-08-03 Thread Carlo Wood
On Thu, 02 Aug 2012 12:21:20 -0700
Kadah  wrote:

I stand corrected :/. And I'm disappointed in the mail viewer
that I use (Claws Mail). I see nothing, and it treats your
message as an attachment. When I click on that it allows
me to "Open" it with abiword -- which I normally only need
to open .doc documents -- hence my accusation...
Before this mail program I used mutt, and that had no problem
showing signed mails directly :\

-- 
Carlo Wood 
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] New HTTP Library & Project Viewer

2012-08-03 Thread Carlo Wood
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Using debian, I installed claws-mail-pgpinline plugin,
and can now see your mails as I should :). Thanks for
your kind patience!

- -- 
Carlo Wood 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQCVAwUBUBxY4m/Sxh1iSsrVAQI+lQP/XSbTU8Jwewvr6vyYo5NW/XqwwZ/S24ZG
EtaRpx6jf/Iv6Yq61nNH+iYhEockE3guiVA1+L8SG1jDeqjHTZLBdzMIvXZVRnVr
ETs6FowTia4kHfMACC/CDdcuZwG0VKKVDNRq1+SOmAPdaLj3gbvqeIle1/2eYBke
lKbivKq+NXM=
=8f6F
-END PGP SIGNATURE-
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] XUI Cleanup Project

2012-08-03 Thread Kadah
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/3/2012 3:36 PM, Richard Nelson wrote:
> There is already code to round-trip XUI files through the param
> block mechanism such that invalid attributes and default values are
> dropped and formatting is normalized.  That code hasn't been
> exercised in a few years, though, so it probably won't run
> correctly right away, but it does provide a mechanism for keeping
> XUI files in line with changing param block schema going forward.
> 
> R.

This is in the viewer somewhere? Is there any documentation on it?

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQHGMXAAoJEIdLfPRu7qE29jIH/0sILRiF32s4FXKZDjgU6wNw
8gRi9gM2+b422ae3io6K22lAl/Tp3hoYiDDeaRvu8j+rBPjgbjJcPtSQBndWVsnI
foFuHxSW3TIHTutXNmvWTVXFULwWXkCJQGVPi4CC1VCQewJsCKQsEnqk8/i52cKK
nL5az4vnA6LqPHKE/VwX93h9m8OIQfsZKRQGysckFhfYLLWCGuhc+db6tN98WN7s
gW6y772R01QDCm1C66Dp8GjUzrZK/ZVIxK33lFiqksX7cSqtcWoY4pHzudGlMMMP
nYFuP2kQXL7svcsgcLiPq6zw0RYEEExnjgyY8VlBI1xteFwdO4J1wn/svjcR32I=
=hcEF
-END PGP SIGNATURE-
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] XUI Cleanup Project

2012-08-03 Thread Richard Nelson
This code is triggered via LLUICtrlFactory::createFromFile() whenever a  
valid output_node is passed in.  There isn't currently any code that  
triggers that behavior, and there is no real documentation, other than  
what you can glean from the small number of comments in the source.

R.

On Fri, 03 Aug 2012 16:47:35 -0700, Kadah  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 8/3/2012 3:36 PM, Richard Nelson wrote:
>> There is already code to round-trip XUI files through the param
>> block mechanism such that invalid attributes and default values are
>> dropped and formatting is normalized.  That code hasn't been
>> exercised in a few years, though, so it probably won't run
>> correctly right away, but it does provide a mechanism for keeping
>> XUI files in line with changing param block schema going forward.
>>
>> R.
>
> This is in the viewer somewhere? Is there any documentation on it?
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.17 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJQHGMXAAoJEIdLfPRu7qE29jIH/0sILRiF32s4FXKZDjgU6wNw
> 8gRi9gM2+b422ae3io6K22lAl/Tp3hoYiDDeaRvu8j+rBPjgbjJcPtSQBndWVsnI
> foFuHxSW3TIHTutXNmvWTVXFULwWXkCJQGVPi4CC1VCQewJsCKQsEnqk8/i52cKK
> nL5az4vnA6LqPHKE/VwX93h9m8OIQfsZKRQGysckFhfYLLWCGuhc+db6tN98WN7s
> gW6y772R01QDCm1C66Dp8GjUzrZK/ZVIxK33lFiqksX7cSqtcWoY4pHzudGlMMMP
> nYFuP2kQXL7svcsgcLiPq6zw0RYEEExnjgyY8VlBI1xteFwdO4J1wn/svjcR32I=
> =hcEF
> -END PGP SIGNATURE-
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges