nyuuzyou/wikis huggingface dataset:
StringIsNum

Due to my need of wanting a nice clean function to test an input and check if it consists entirely of numbers, I decided to write one myself, and share with the community.
This snippet is a fully working User Made Function. It is designed to be inserted into existing scripts to check if an input consists entirely of numbers, and will reject inputs that contain letters or symbols.
Note: This is a very inefficient technique. See later better examples.
// this function will return TRUE if the entire string consists of number characters only
integer string_is_num(string input)
{
 list numberCharacters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
 integer stringLength = llStringLength(input);
 integer index;
 do
 {
 string character = llGetSubString(input, index, index);
 if (llListFindList(numberCharacters, [character]) == -1)
 return FALSE;
 ++index;
 }
 while (index < stringLength);
 return TRUE;
}
default
{
 state_entry()
 {
 key owner = llGetOwner();
 llListen(0, "", owner, "");
 }
 listen(integer channel, string name, key id, string message)
 {
 //Respond if the string is a number
 if( StringIsNum(message) )
 llOwnerSay("'" + message + "' consists of numbers only.");
 else
 llOwnerSay("'" + message + "' does not consist of numbers only.");
 }
}
==Better Methods==
Here's a simpler solution for strings containing integer values from −2147483648 and 2147483647 written without + sign, leading zeros, or thousands separators ',' (Omei Qunhua)
 if ( (string) ( (integer) data) == data)
 llOwnerSay("'" + data + "' contains a valid integer");
The following examples will validate that a string contains only the characters 0 though 9. (Omei Qunhua)
a) Example for a string of length 5
 StringOf5Dec(string test)
 {
 return ( (integer) ("1" + test) >= 100000);
 }
b) Example for a string of length 1 through 9
 VarStringIsDecimal(string test)
 {
 integer limit = (integer) llPow(10.0, llStringLength(test) );
 return ( (integer) ("1" + test) >= limit);
 }
StringTruncate

Not to be confused with llStringTrim.
this function will trim a string if it is too long.
Function
string StringTruncate(string text, integer length)
{
 if (length < llStringLength(text))
 return llGetSubString(text, 0, length - 2) + "…";
 // else
 return text;
}
Example
string StringTruncate(string text, integer length)
{
 if (length < llStringLength(text))
 return llGetSubString(text, 0, length - 2) + "…";
 // else
 return text;
}
 
default
{
 state_entry()
 {
 // llSay(PUBLIC_CHANNEL, "Hello, Avatar!");
 }
 
 touch_start(integer num_detected)
 {
 llSay(PUBLIC_CHANNEL, StringTruncate("my name Ulrik Ulrik", 11));
 }
}
String Compare

=== String compare ===
Created by Xaviar Czervik. Do whatever you wish with this function: Sell it (good luck), use it, or modify it.
The following code returns 1, -1 or 0. The 1 and -1 are essentially random, however it will return the same value every time the script is executed. 0 Is returned when, and only when, the strings are exactly equal. Completely re-designed to use a few tricks I learned in the past months. Also much easier to read now.
I have used this script for comparing the Keys of two objects in a dynamic set of sensors, to decide which one should be the "Master" in the region to tell me information. I'm sure there can be more uses to this...
integer compare(string s1, string s2)
{
 if (s1 == s2)
 return FALSE;
 else if (llStringLength(s1) < llStringLength(s2))
 return TRUE;
 else if (llStringLength(s1) > llStringLength(s2))
 return -1;
 else
 {
 list testList = [s1, s2];
 testList = llListSort(testList, 0, TRUE);
 if (s1 == llList2String(testList, 0))
 return TRUE;
 return -1;
 }
}
=== Notes: ===
I'm not sure why the string length comparison is in above function, it is not needed for string comparison functions where you rely on alphabetical order. The concept is nice though. I've modified this function. Given strings s1 and s2, it'l return 1 if s1>s2, -1 if s1<s2 and 0 if they are equal:
integer compare(string s1, string s2)
{
 if (s1 == s2)
 return FALSE;
 else
 {
 list testList = [s1, s2];
 testList = llListSort(testList, 1, 0);
 // s2 < s1
 if (s1 == llList2String(testList, 0))
 return TRUE;
 return -1;
 }
}
Above function not extensively tested, but it seems to suit my purpose (having users enter a set of characters within certain range, filter out anything else since it will be submitted to a webpage).
If only linden would give us 'normal' string comparison functions like any other language, instead of spending expensive cpu cycles to validate user input.
This can be further reduced to the following:
integer compare(string s1, string s2)
{
 if (s1 == s2)
 return FALSE;
 if (s1 == llList2String(llListSort([s1, s2], 1, TRUE), 0))
 return -1;
 return TRUE;
}
Structural Design Overview

In Meeting 1 Zero Linden was giving a small overview of how Linden Lab is thinking about a new architecture for the Second Life grid.
These slides are also viewable in Second Life on the open source island Hippotropolis.
== Today and Tomorrow ==
First a slide on how things work today:
Today the viewer only connects to the region and the region keeps track of everything and acts as a proxy to the central databases. With the numbers envisioned in Project Motivation the
central servers will not be able to cope with that. 
The solution Linden Lab sees is to divide the structure into an Agent Domain and a Region Domain, each of them handling the components they are named after. Moreover there are some more central services
such as Identity, Location, Currency and Search and there might be the case that multiple domains need to work together.
* Agent Domain
* Region Domain
* Multiple Domains
* Central Services
* Running at Home and Offline
=== Made decisions ===
* It will all be based on REST
* Certified HTTP will be used where appropriate (exactly-once messaging between reliable hosts). Implementation is ongoing.
* Capabilities will be used
* LLSD will probably stay on not be changed to JSON. According to Linden Lab this should be no problem as there is a library for most languages to handle LLSD.
===Final example setup===
If all this is implemented it might look like this in the end.
Category:Architecture Working Group
Category:Grid_Interoperability
Stuck logging in

Problem: Resident is stuck logging in, or can't log in.
Possible Solutions:
* Make sure the grid is up.
** It should display "ONLINE", "RESTRICTED", or "OFFLINE" in the upper right part of your main screen.
*** If it says "OFFLINE", you can't access the grid.
*** If it says "RESTRICTED", only accounts that have payment info on file (and have used it at least once) can log on (only for peak activity times).
*** If it says "ONLINE", you should be able to access the grid.
* Make sure you're not being stopped by a firewall.
** If you are, change the settings to allow SecondLife.exe (or contact your system admin for corporate connections).
* Delete the files in Temporary and Cache directories on your hard disk.
Note: If you have changed the location of your cache folder in your settings, replace the path to the cache folder in these instructions with your own setting
: Windows
:: * c:\documents and settings\<username>\Local Settings\Temp 
:: * c:\documents and settings\<username>\Application Data\Secondlife\Cache
: Macintosh
:: * /Users/<username>/Library/Application Support/SecondLife/cache
:: * /tmp/
: Linux
:: * ~/.secondlife/cache
:: * /tmp/
:: Note: deleting all files in /tmp/ can have adverse effects on the stability of your linux desktop, you might want to relog to your computer at this point
* Reinstall SL using a new copy from www.secondlife.com
: Windows
:: * Uninstall SL through the Add/Remove Programs option in Control Panel.
:: * Reinstall SL.
: Macintosh
:: * Delete temporary and cache directories as above.
:: * Delete "Second Life Viewer.app" from the /Applications directory.
:: * Reinstall SL.
: Linux
:: * Delete temporary and cache directories as above.
:: * Delete the folder where you unpacked the tar file with the viewer you downloaded from www.secondlife.com
:: * Download the latest viewer from www.secondlife.com and install it as usual.
== Contributors ==
* Nova Linden
* Peter Nelson
* Lance Corrimal
Hotfixes, Login Problems
Studies

I might save here some of my studies, some of my scripts... For now, I am just starting this.
----
This is my first script, to test the animated textures. Is just pasting code from other tutorials.
// 
// primul meu script "from scratch"
//
// astazi este si o zi remarcabila! 
// 10.10.2010
//
default
{
 state_entry()
 {
 llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, 1,1,1,1,1);
 }
 touch_start(integer total_number)
 {
 llSay(0, "Touched already. Please remember.");
 }
}
----
Subcontinent

A subcontinent is a part of a continent. It is formed of a various number of sims and can also be divided into regions or subcontinents. A subcontinent is too small or uncomplete separated from a larger continent to be considered itself a continent. There is no way to define clear borders for a subcontinent. For example, somebody might consider Bay City a subcontinent of Sansara. It is true, but someone else might include in Bay City the suburbs (Nova Albilon, Luna and Shemerville). A subcontinent might be considered all the South part of Sansara, with its large plateaus, but this means that Snowlands, another subcontinent, will be split in two.
This creates confussions for Geographs, but it is much better to avoid fixing too many barriers and let everybody divide land as it is better for the moment.
== Examples ==
Bay City, Snowlands Subcontinent or the Islanders in Sansara, Seychelles and Nautilus City in Nautilus, Caledon and Winterfel in Caledon - Winterfel, Linden Memorial in Corsica and not only.
== See also ==
Second Life Geography
Continent
Transcontinental Channels
List Of Continents
Oceans
Microcontinent
Sim Cluster
Unassociated Sims
Sim Group
Subscribe

Want to be notified when a page on this Wiki changes? It's easy.
== Watch list ==
At the top of every page is a Watch tab.
# Login to wiki.secondlife.com .
# Go to a page you want to watch.
# Click the Watch link.
Updates appear on your My watchlist page, whose link is always shown towards the top-right of the page. You can watch as many pages as you'd like.
The Wiki also offers to inform you via e-mail when a page on your watchlist is changed. To activate this feature, proceed as follows:
# Access your Preferences.
# Enter a valid e-mail in the E-mail field.
# Check the E-mail me when a page on my watchlist is changed checkbox.
# Click the Save button.
# You'll receive an e-mail — check your spam folder to ensure it doesn't get lost — awaiting your confirmation. Afterwards, you'll receive a notification for each change to a page on your watchlist.
== RSS & Atom ==
RSS (Really Simple Syndication) and Atom (Atom Publishing Protocol) let you subscribe to a page. They have technical differences but the end benefit is the same: updates appear in a "feed" which is automatically refreshed.
On any regular Wiki page, there's a History tab link on top of the page. Clicking it leads you to the article's revision history. In a supported web browser like Firefox 3.5, you can see an RSS icon () in the location bar. For example, for this page, it's https://wiki.secondlife.com/w/index.php?title=Subscribe&feed=rss&action=history. Click that icon to get the page's RSS link. You can bookmark this or add it to a feed reader.
If you're an info-holic, you can also subscribe to the feed of all changes on the Second Life Wiki. To do so, browse to Special:RecentChanges and proceed as before. Or look in the Toolbox on the bottom of the sidebar, which displays links for RSS and Atom.
The same is possible for any Category page, such as :Category:Knowledge Base. However, these feeds are occasionally buggy. If you encounter problems, contact Torley.
Category:Help/Wiki
Subscribe/pt

Deseja ser notificado quando alguém efetuar alguma edição em uma página nesta wiki ? Isto é fácil.
== Lista de páginas vigiadas ==
No alto de cada página desta wiki existe a aba vigiar.
Para poder vê-la, terá que se logar.
# Logue-se no site wiki.secondlife.com .
# Dirija-se a página que deseja vigiar.
# Clique na aba vigiar.
Alterações nas páginas deverão aparecer na sua página de artigos vigiados, cujo link sempre é mostrado no alto, lado direito de cada página. Você poderá vigiar quantas páginas desejar.
	
A Wiki também pode lhe enviar um e-mail informando qual a página da sua lista de vigiados, foi alterada.
Para ativar este recurso, siga o seguinte procedimento:
# Acesse a sua preferências, situado no alto da página.
# Entre com um e-mail válido, no campo E-mail.
# Assinale a caixa Enviar-me um e-mail quando uma página da minha lista de páginas vigiadas for alterada.
# Clique no botão Salvar.
# Você receberá um e-mail - verifique a sua pasta spam para ter certeza que não tenha perdido o e-mail.
== RSS e Atom ==
Poderá usar leitor de feeds como o RSS ou o Atom. Eles permitem que você subscreva uma página. 
Apresentam algumas diferenças técnicas de exibir uma página, mas fazem a mesma coisa. 
As atualizações vão aparecer em um leitor de feed quando ele for atualizado.
Qualquer página comum da wiki, tem a aba Histórico no alto da página. 
Clicando nele vai entra na página: Histórico de edições. 
Lá poderá ver no canto esquerdo da página, os ícones .
Copie e cole o link no seu leitor de feed.
Se você tiver um navegador como o Firefox, você poderá ver o ícone RSS () na barra de localização. 
Por exemplo, esta página, é: https://wiki.secondlife.com/w/index.php?title=Subscribe&feed=rss&action=history.
Clique no ícone para obter o link RSS desta página. Você poderá adicionar a página no seu livro de endereços.
Se for um editor bem dinâmico também poderá subscrever o feed das mudanças recentes, que registra todas as alterações/edições na wiki. Navegue para a página Special:RecentChanges procure no lado esquerdo da página, o item Ferramentas e copie o RSS ou o Atom.
Category:Ajuda/Wiki
Suggested BVH Hip Y Locations

It is important to know how far to place the hip above the ground to avoid floating over it or sinking under its surface, unless that is desired in your animation.
It's obvious that the location the hip should be in depends on the pose the avatar is in. Therefore this article can only indicate a reasonable range for some common situations.
It's also obvious the distance between the hip and the ground can vary depending on the standing height of the avatar. Fortunately, Second Life adjusts for this.
The lowest hip locations are usually used in ground sit animations. The built-in ground sit animation uses 8.325 as the hip Y location when fully seated on the ground.
The highest hip locations are usually used in standing and turning animations. Second Life has 5 built-in standing animations, all of which are motion captured, so there is no fixed Y location. However, all values are close to 42.100, and that value works well for all shapes I have tested it with.
All other animation types where the location of the ground is relevant (walk, run, prejump, crouch, crouch walk, land, and stand up) will be somewhere in-between.
== Known Issues ==
A bug causes avatars to float above or sink beneath the ground when using custom sitting animations (see VWR-25037).
== See Also ==
*BVH Hip Location Limits
*Suggested BVH Joint Rotation Limits
Category:LSL_Animation
Suggested For Deletion/LlGetPizza

I'd consider this article beeing a silly feature request, rather than spam. I actually thought it was quite funny and would go along the lines of the hippos! easter egg. I don't think that it needs to be deleted, although I doubt that it will ever be implemented... Lynch (talk|contribs) 21:57, 19 May 2009 (UTC)
IMO A little humor is acceptable on the wiki, as long as it is out of the way and isn't offensive. -- Strife (talk|contribs) 11:47, 20 May 2009 (UTC)
Suggested For Deletion/State Machines

Please remove suggested deletion request, as per Project:Terms_of_Use#Contributing_to_the_Wiki (also noted on EVERY edit window), Original Author has decided to get cold feet, and is making a fallacious claim that their **additional** license supersedes the usage agreement of this wiki, rather than providing addition options for users per Project:Terms_of_Use#Using_Wiki_Content. If any valid personally identifying privacy issues are found it would be prudent to edit those out specifically and move the page to remove any bactracking by history log. Thank You.-- Void (talk|contribs) 08:13, 3 May 2012 (PDT)
Suggested For Deletion/Trick or Treat

Please remove suggested deletion request, as per Project:Terms_of_Use#Contributing_to_the_Wiki (also noted on EVERY edit window), Original Author has decided to get cold feet, and is making a fallacious claim that their **additional** license supersedes the usage agreement of this wiki, rather than providing addition options for users per Project:Terms_of_Use#Using_Wiki_Content. If any valid personally identifying privacy issues are found it would be prudent to edit those out specifically and move the page to remove any bactracking by history log. Thank You.-- Void (talk|contribs) 08:06, 3 May 2012 (PDT)
Suggested Standing Animation Design

Ideally, a standing animation would be looped, and have enough unique frames to fill exactly 20 seconds, no more, no less.
== Rationale ==
Animation overrider authors discovered that avatars could appear much more lifelike by playing short animations, in random order, rather than longer, cyclical, animations.
Most animation overriders default to 20 seconds between swapping randomly selected stands.
Since animations can't be cut off in the middle by being stopped early, animations longer than 20 seconds will play correctly. Animations shorter than 20 seconds will play correctly so long as they are looped. The loop body will repeat to fill the time. Unlooped 20 second animations would cause problems for anyone that set their animation overrider to swap stands at a interval longer than the default. Thus all standing animations should be looped.
If your animation's length, without repeating the loop body, is at least 20 seconds there will be no visible repetition while your animation is played by an animation overrider with the swapping interval set to default. So you don't want your animation to have less than 20 seconds of unique frames.
The shorter the animation, the less noticeable it will be as a sequence. Therefore you don't want your animation to have more than 20 seconds of unique frames.
== See Also ==
*Animation Upload Loop Controls
Category:LSL_Animation
Suicide hotlines

Volunteers should encourage the person in crises to call their local emergency services number ( in Canada or the US, in most European countries) or a local crisis hotline.
== National Suicide Crisis Hotlines ==
* USA:
** 
** Web: http://www.suicidepreventionlifeline.org/
* Canada:
** 
* UK:
** 
* France:
** 
** Web: http://suicide.ecoute.free.fr/
* Australia:
** 
** Web: http://www.lifeline.org.au/
* New Zealand:
** within Auckland
** outside Auckland
** Web: http://www.lifeline.org.nz
* Germany:
** (ev.) (protestant)
** (rk.) (roman catholic)
** (Kinder / Jugendliche) (for kids/teens)
** Web: http://www.telefonseelsorge.de
* Netherlands:
** (workdays, 0900-1800 local (CET))
** Web: http://www.korrelatie.nl
* Belgium:
** (24/7)
** Website: http://www.zelfmoordpreventie.be/index.php
* Portugal
** Suicide prevention hotline(s) operated by SOS Voz Amiga (every day from 15:30-00:30 GMT):
*** 
*** 
*** 
** National hotline will be available during 2024 through the SNS24 number, (only available inside Portugal)
== Other Countries ==
----
* http://www.suicide-helplines.org/ - site offers info about suicide/crisis helplines worldwide no longer functions this way
* http://www.befrienders.org - international non-profit with 31,000 volunteers in over 40 countries 
* http://suicideandmentalhealthassociationinternational.org/Crisis.html - site offers info about suicide/crisis helplines worldwide no longer functional
== USA ==
===Trevor Project===
The Trevor Project operates the nation's only 24/7 crisis & suicide prevention helpline for gay, lesbian, bisexual, transgender and questioning youth ages 13 - 24. If you or a friend are feeling lost or alone call The Trevor Helpline. There is hope, there is help.
* Trevor Lifeline
* Web: https://www.thetrevorproject.org/get-help/
===LGBT National Hotline===
The Lesbian, Gay, Bisexual and Transgender National Hotline provides telephone and email peer-counseling, as well as factual information and local resources for cities and towns across the United States.
* LGBT National Hotline has no suicide hotline
* Web: https://lgbthotline.org/national-hotline/
----
== Notes ==
Category:Social Support Services
Suicide hotlines/fr

Les Volontaires devraient encourager les personnes en crise à appeller leur numéro de service local d'urgence (le 911 au Canada ou aux Etats-Unis, le 112 dans plusieurs pays Européens) ou une hotline locale en cas de crise de suicide.
== Hotlines Nationales concernant les crises de suicide ==
* Etats-Unis: 1-800-784-2433 Web: http://www.suicidehotlines.com
* Canada: 1-800-448-1833
* Royaume-Uni: 08457 90 90 90
* France: 01 45 39 40 00 Web: http://suicide.ecoute.free.fr/
* Australie: 1300 13 11 14 Web: http://www.lifeline.org.au 
* Nouvelle Zélande: (9) 5222-999 within Auckland, 0800 111-777 outside Auckland Web: http://www.lifeline.org.nz
* Allemagne:
** 0800 - 111 0 111 (ev.) (protestant)
** 0800 - 111 0 222 (rk.) (catholiques romans)
** 0800 - 111 0 333 (Kinder / Jugendliche) (pour enfants/adolescents)
** Web: http://www.telefonseelsorge.de
* Pays Bas: 0900-1450 (workdays, 0900-1800 local (CET)) Web: http://www.korrelatie.nl
* Belgique: 02 649 95 55 (24/7) Website: http://www.zelfmoordpreventie.be/index.php
== Autres pays ==
* http://www.suicide-helplines.org/ - site qui offre des informations à propos des crises de suicide, des lignes d'aides de par le monde:
* http://www.befrienders.org - Site international à but non-lucratif de 31 000 volontaires dans plus de 40 pays 
* http://suicideandmentalhealthassociationinternational.org/Crisis.html - site qui offre des informations à propos des crises de suicide, des lignes d'aides de par le monde
== Etats-Unis ==
* 1-866-488-7386 : http://www.thetrevorproject.org/
Le projet Trevor est utilisable 24 heures sur 24 et 7 jours sur 7 pour offrir une ligne d'aide concernant les crises et la prévention du suicide, uniquement pour les Homosexuels, Lesbiennes, Bisexuels, Transexuels et les jeunes se posant des questions. Si vous ou un de vos amis se sent perdu ou seul, appellez la ligne d'aide de Trevor. Il y a un espoir, il y a de l'aide.
* 1-888-843-4564 Web: http://www.glnh.org/hotline/index.html
La Hotline nationale pour les Homosexuels, Lesbiennes, Bisexuels et Transsexuels propose un service d'aide par téléphone ou par mail, tout comme des informations factuelles et des ressources locales pour les villes et cités à travers les Etats-Unis.