Difference between revisions of "User:Strife Onizuka"
m (;-)) |
m (→Tenebrous: Replaced <source> with <syntaxhighlight>) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 70: | Line 70: | ||
I <del>have</del><ins>had</ins> a webpage but I haven't updated it in <del>a few</del><ins>many</ins> <del>months</del><ins>years</ins>... | I <del>have</del><ins>had</ins> a webpage but I haven't updated it in <del>a few</del><ins>many</ins> <del>months</del><ins>years</ins>... | ||
Wiki's are the way of the future when it comes to making documentation Ad-hoc | Wiki's are the way of the future when it comes to making documentation Ad-hoc. With popularity graffiti becomes a worsening problem. The wiki owner is left between a rock and a hard place: cope with graffiti edits or cope with out-of-data information. The popular choice is to restrict editing, which ultimately drives away legitimate editors. | ||
also contribute to some other | I also contribute to some other wikis: | ||
*[http://history.secondserver.net/index.php/Main_Page History Wiki] | *[http://history.secondserver.net/index.php/Main_Page History Wiki] | ||
*[http://www.AviSynth.org/BlindWanderer AviSynth:BlindWanderer] | *[http://www.AviSynth.org/BlindWanderer AviSynth:BlindWanderer] | ||
Line 104: | Line 104: | ||
==BitCount== | ==BitCount== | ||
< | <syntaxhighlight lang="lsl2">integer bitcount(integer n) | ||
{//MIT Hackmem 169, modified to work in LSL | {//MIT Hackmem 169, modified to work in LSL | ||
integer tmp = n - ((n >> 1) & 0x5B6DB6DB)//modified mask | integer tmp = n - ((n >> 1) & 0x5B6DB6DB)//modified mask | ||
- ((n >> 2) & 0x49249249); | - ((n >> 2) & 0x49249249); | ||
return (((tmp + (tmp >> 3)) & 0xC71C71C7) % 63) - (n >> 31); | return (((tmp + (tmp >> 3)) & 0xC71C71C7) % 63) - (n >> 31); | ||
}</ | }</syntaxhighlight> | ||
==Tenebrous== | ==Tenebrous== | ||
< | <syntaxhighlight lang="lsl2">string ignore = "c228d1cf-4b5d-4ba8-84f4-899a0796aa97"; | ||
list Tenebrous(){ | list Tenebrous(){ | ||
Line 128: | Line 128: | ||
} | } | ||
return out; | return out; | ||
}</ | }</syntaxhighlight> | ||
{{visl | {{visl |
Latest revision as of 15:26, 3 February 2023
Subpages
- Personal
- Code
- Articles
About Strife
Synopses
Strife joined 3/3/2004, and is an avid scripter, wiki author and SL forum denizen. Not content in selfish information gathering, he shares what he knows through various mediums, so that others may benefit and learn. He volunteers his time to work on many public projects which include: giving scripting advice, writing LSL documentation, providing and improving LSL scripts and libraries. Secondlife has been on Strife's brain for that last 2 decades.
SL Status
Strife is unemployed. Leave me a note on my talk page.
Honors
Through his public works Strife became a pillar of the SL community.
Strife is a Hippo award winner, awarded "Best Community Organizer" in the 2007 Linden Lab Innovation Awards, and here is his mention as a runner-up in the 2008 "Best Documentation" category: "Last year's winner, Strife Onizuka, continued to be insanely prolific, with thousands of edits over the past year.... Anyone learning LSL is almost certainly indebted to Strife's work in some way."
Own Words
I'm an immigrant from URU. Was in all 3 of it's beta's.
Wiki Gnome (causing drama isn't why I'm here) for about 21 years.
I havehad a webpage but I haven't updated it in a fewmany monthsyears...
Wiki's are the way of the future when it comes to making documentation Ad-hoc. With popularity graffiti becomes a worsening problem. The wiki owner is left between a rock and a hard place: cope with graffiti edits or cope with out-of-data information. The popular choice is to restrict editing, which ultimately drives away legitimate editors.
I also contribute to some other wikis:
When it comes to writing I tend to go towards concise. A short accurate description is better then a long equally accurate description; less to get confused with, easier to find the important information (because it is all important).
Scite/ESL
My config files:
- Google Drive
- lsl.api
- lsl.properties
- stripper.zip - Whitespace stripper
- clipboard.zip - copies text to clipboard
- lslint (Makopo's fork)
- builtins.txt - Up to date keyword file for lslint (generated by kwdb)
- indent - code beautifier (picks up where the whitespace stripper leaves off)
- MSVC Express
TightList
See TightList
Float Functions
See /Float Functions
BitCount
integer bitcount(integer n)
{//MIT Hackmem 169, modified to work in LSL
integer tmp = n - ((n >> 1) & 0x5B6DB6DB)//modified mask
- ((n >> 2) & 0x49249249);
return (((tmp + (tmp >> 3)) & 0xC71C71C7) % 63) - (n >> 31);
}
Tenebrous
string ignore = "c228d1cf-4b5d-4ba8-84f4-899a0796aa97";
list Tenebrous(){
integer link = llGetNumberOfPrims();
list out;
string s;
for(link -= (link == 1); !llGetLinkNumberOfSides(link);)
{
list t = llGetLinkPrimitiveParams(link, [PRIM_TEXTURE, ALL_SIDES]);
integer i = t != [];
while((i -= 4) >= 0)
if(ignore != (s = llList2String(t, i)))
out = [i >> 2, s] + out;
out = llGetLinkKey(link--) + out;
}
return out;
}