>>81
Without a shadow of a doubt yes. Don't worry it's entirely normal.
Name:
Anonymous2009-08-30 17:02
>>82
Unless of course, a second buttsort was being propagated in his proximity at 50Hz with an identical amplitude and 90 degree phase offset from the backround nose. Thus canceling out all active buttsorting.
>>94
Providing a mIRC implementation.
Usage: /bs testing buttsort
Can be used as an identifier, e.g. $buttsort(testing buttsort)
Caveat: Will not function well at all if the output ends up being > 900 characters. This means that you can only do roughly 90 characters worth of input text.
alias bs { say $buttsort($$1-) }
alias bbcode { return $+($chr(91), $1, $chr(93)) }
alias endbbcode { return $bbcode($+($chr(47), $1)) }
alias buttsort {
var %text = $$1-
var %output = $bbcode(b) $+ $bbcode(i)
var %i = 1
var %ctr = 1
var %t = $len(%text)
while (%i <= %t) {
var %g = $mid(%text, %i, 1)
var %spacequantity = 0
while (%i <= %t && %g == $chr(32)) {
inc %i
inc %spacequantity
var %g = $mid(%text, %i, 1)
}
if (%i > %t && %spacequantity > 0) { break }
if (%ctr == 1) {
var %output = %output $+ $str($chr(32), %spacequantity) $+ $bbcode(u) $+ %g $+ $endbbcode(u)
var %ctr = 0
}
else {
var %output = %output $+ $str($chr(32), %spacequantity) $+ $bbcode(o) $+ %g $+ $endbbcode(o)
var %ctr = 1
}
inc %i
}
var %output = %output $+ $endbbcode(i) $+ $endbbcode(b)
return %output
}
>>104
I attempted to reverse-engineer his ButtSort as it appeared kind of random, and it turned out it was just that, split letters, wrap each letter in a random tag, and wrap it with b/i tags.
Maybe I'll integrate various buttsorts into it and make it more customizable(add lots of keyword args which can specify all kinds of characteristics of your desired buttsort) another day.
public class buttSorter
{
public static void main(String args[])
{
StringTokenizer st = new StringTokenizer(" ");
String tempChar = "";
String input = "";
String output = "[b][i]";
String next;
int i = 1;
String tags[] = new String[]{"b", "i", "o", "u", "code", "sup", "sub"};
Random gen = new Random();
input = "" + JOptionPane.showInputDialog(
null,
"What do you wish to Buttsort?",
"Buttsorter",
JOptionPane.PLAIN_MESSAGE,
null,
null,
"");
try
{
st = new StringTokenizer(input);
}
catch(Exception e)
{
System.out.println("Tokenizer fucked up");
System.exit(1);
}
while(st.hasMoreTokens())
{
next = st.nextToken();
while(next != "")
{
i = Math.abs(gen.nextInt()) % 7;
if(next.length() > 1)
{
tempChar = next.substring(0, 1);
next = next.substring(1);
}
else
{
tempChar = next;
next = "";
}