« first day (3345 days earlier)      last day (1578 days later) » 

4:57 AM
!~unonebox disable
@nyconing un-onebox disabled
 
5:43 AM
!~unonebox enable
@nyconing un-onebox enabled
 
 
3 hours later…
8:53 AM
ok
ok
 
ssssssssshhhh
 
Jack, omegalenny
 
8:54 AM
oh no, now this will be in the sandbox for hours
Jack, learn unbox
 
....Come Again?
 
@Wietbot evalnode 0
 
@Wietlol 0
 
@Wietbot evalnode 0 < "0"
 
@Wietlol false
 
9:00 AM
@Wietbot evalnode 0 >= undefined
 
@Wietlol false
 
@Wietbot evalnode 0 < undefined
 
@Wietlol false
 
9:11 AM
@Wietbot evalcsharp 0
 
0
 
@Wietbot evalcsharp System.Math.Pow(System.UInt32.MaxValue, 2)
 
1.84467440651196E+19
 
@CaptainSquirrel Feature request: Have oneboxes edited to vanish after 1.5 minutes (or close to the end of the editing time)
 
or after 10 seconds
 
 
2 hours later…
10:46 AM
!~help cat
@nyconing Command cat does not exist.
!~help cat
@nyconing Command cat does not exist.
!~learn persian meow
@nyconing Command persian already exists
!~unlearn persian
@nyconing Maybe you meant: learn
!~forget persian
@nyconing You are not authorized to delete the command persian
!~help cat
@nyconing cat: The Cat API
!~help persian
@nyconing persian: The Cat API
!~help shiba
@nyconing shiba: The Shibainu API
!~help
@nyconing NyBot is born from Zirak's SO-ChatBot.
If you're new, use !~listcommands to get started.
If you found bugs, or for contributes, please add an issue into https://github.com/Nyconing/SO-NyBot
!~listcommands
reply nyconing
I'm NyBot. You can utilize me with following commands:

Moderation commands:
·ban          Bans a user from using me. Lacking arguments, prints the  ban list.
              `/ban [usr_id|usr_name]`
·die          Kills me :(
·live         Resurrects me (:D) if I'm down (D:)
·refresh      Reloads the browser window I live in
·summon       Say boopidi bee and in the room I shall be. `/summon roomid`
·unban        Frees a user from my mindjail. `/unban usr_id|usr_name`
·undo         Undo (delete) specified or last message. `/undo [msgid0, msgid1, ...
 
 
9 hours later…
7:44 PM
@Wietbot test
 
I don't know this command, did you mean any of the following? join, leave
 
@Wietbot join 7
@Wietbot evalnode 0
 
@Wietlol 0
 
8:05 PM
@Wietbot evalcshar 0
 
0
 
@Wietbot evalcshar System.Int32.MaxValue
 
2147483647
 
@Wietbot evalcshar Int32.MaxValue
 
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,1): error CS0103: The name 'Int32' does not exist in the current context)
 
8:07 PM
@JonathonChase ^
 
8:23 PM
@Wietbot evalnode let num = 5; 'fi_other'+(+num+ +1);
 
@Wietlol fi_other6
 
@Wietbot evalnode let num = 4; 'fi_other' + (num + 1);
 
@Wietlol fi_other5
 
 
1 hour later…
9:32 PM
@Wietbot evalcsharp Console.WriteLine(Assembly.GetExecutingAssembly().IsFullyTrusted);
@Wietbot evalcsharp Console.WriteLine(System.Reflection.Assembly.GetExecutingAssembly().IsFullyTrusted);
 
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,19): error CS0103: The name 'Assembly' does not exist in the current context)
Result: null
Output:
True
 
the current list is not yet live
just a sec
 
@Wietbot evalcsharp unsafe void Test() { int x = 42; Console.WriteLine(new System.IntPtr(&x)); } Test();
 
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,56): error CS0246: The type or namespace name 'IntPtr' could not be found (are you missing a using directive or an assembly reference?))
Result: null
Output:
140730697443656
 
Maybe set the trust down.
 
9:37 PM
why?
go ahead, break it
... deploying new package ...
@Wietbot evalcshar Int32.MaxValue
 
2147483647
 
deployed
@Wietbot evalcsharp Console.WriteLine(Assembly.GetExecutingAssembly().IsFullyTrusted);
 
Result: null
Output:
True
 
@Wietbot join 7
 
@Wietbot evalcsharp
public class X<A,B,C,D,E> {
public class Y:X<Y,Y,Y,Y,Y> {
Y.Y.Y.Y.Y.Y.Y.Y.Y y;
}
}
 
9:43 PM
ooh
 
@JonathonChase lol
 
I didnt test that
 
me.wietlol.aws.lambda.LambdaException(unknown: 2019-12-13T21:43:31.438Z 72b1d663-9fcb-4138-a9a1-89b64bcac0fd Task timed out after 20.01 seconds[])
 
A compiler bomb?
 
Yeah, that probably pegged it.
 
9:43 PM
Hot
 
After about the 6th Y. linqpad starts to slow down a lot
after about the 10th it just locks up
Just trying to work out intellisense
 
@Wietbot evalcsharp for(;;) Console.WriteLine("lol");
 
oh...
 
inb4 20seconds of LOL
 
me.wietlol.aws.lambda.LambdaException(unknown: 2019-12-13T21:44:54.718Z 653ca4ec-8395-4708-b7b5-cb5904a185d2 Task timed out after 20.02 seconds[])
 
9:45 PM
@Wietbot evalschar for(int i = 0; i < 400; i++) Console.WriteLine("x");
 
@Wietbot evalcsharp throw new Exception();
 
I don't know this command, did you mean any of the following? evalcsharp, evalsql
System.Exception(Exception of type 'System.Exception' was thrown.)
 
I can type, I swer
@Wietbot evalcsharp for(int i = 0; i < 400; i++) Console.WriteLine("x");
 
Result: null
Output:
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
 
hehe
I dont think I added a safeguard for the message size tho
@Wietbot evalcsharp for(int i = 0; i < 1000; i++) Console.WriteLine("x");
 
9:46 PM
Result: null
Output:
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
 
@Wietbot evalcsharp
FizzBuzz(100);

public void FizzBuzz(int n) =>
Enumerable.Repeat(new[] { "", "", "Fizz" }, (n / 3) + 1).SelectMany(x => x)
.Zip(Enumerable.Repeat(new[] { "", "", "", "", "Buzz" }, (n / 5) + 1).SelectMany(x => x), (a, b) => a + b)
.Zip(Enumerable.Range(1, n), (a, b) => !string.IsNullOrWhiteSpace(a) ? a : b.ToString())
.FirstOrDefault(x => { Console.WriteLine(x); return false; });
 
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,380): error CS1002: ; expected)
Result: null
Output:
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
FizzBuzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
FizzBuzz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz
 
@Wietlol evalsql exec sp_msforeachtable drop table ?
 
hmm... that could render evalsql unusable
as it does not recognize it as an unstable instance
 
@Wietbot evalcsharp Directory.Delete(@"C:\", true);
 
9:48 PM
I AM NOT A BOT, DAMNIT!
 
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,1): error CS0103: The name 'Directory' does not exist in the current context)
 
oh
 
@Wietbot evalcsharp System.IO.Directory.Delete(@"C:\", true);
 
System.IO.DirectoryNotFoundException(Could not find a part of the path '/var/task/C:\'.)
 
also, how do I nicely do a time test?
 
9:49 PM
@Wietbot evalcsharp System.IO.Directory.Delete(@"~", true);
 
System.IO.DirectoryNotFoundException(Could not find a part of the path '/var/task/~'.)
 
getting a timespan or milliseconds from a piece of running code
 
Stopwatch?
 
oh, ye, thanks
wait... it is not showing everything
 
@Wietbot evalsql select 'foo'
 
9:51 PM
'foo'

foo
 
@JonathonChase 21095ms
 
@Wietbot evalsql drop schema dbo
 
org.h2.jdbc.JdbcSQLSyntaxErrorException(Schema "DBO" not found; SQL statement:
drop schema dbo [90079-200])
 
for your code to compile
 
@Wietbot evalsql select * from sys.schemas
 
9:52 PM
me.wietlol.aws.lambda.LambdaException(org.h2.jdbc.JdbcSQLSyntaxErrorException: Schema "SYS" not found; SQL statement:
select * from sys.schemas [90079-200][
at org.h2.message.DbException.getJdbcSQLException(DbException.java:576),
at org.h2.message.DbException.getJdbcSQLException(DbException.java:429),
at org.h2.message.DbException.get(DbException.java:205),
at org.h2.message.DbException.get(DbException.java:181),
at org.h2.command.Parser.readTableFilter(Parser.java:1940),
at org.h2.command.Parser.parseSelectFromPart(Parser.java:2827),
 
@wietbot evalcsharp
System.IO.File.ReadAllLines("/etc/passwd").FirstOrDefault(x => { Console.WriteLine(x); return false;});
 
Result: null
Output:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
 
AH
HAHA
 
It's shadowed, sooo
 
@Wietbot evalsql select db_name()
 
9:53 PM
me.wietlol.aws.lambda.LambdaException(org.h2.jdbc.JdbcSQLSyntaxErrorException: Function "DB_NAME" not found; SQL statement:
select db_name() [90022-200][
at org.h2.message.DbException.getJdbcSQLException(DbException.java:576),
at org.h2.message.DbException.getJdbcSQLException(DbException.java:429),
at org.h2.message.DbException.get(DbException.java:205),
at org.h2.message.DbException.get(DbException.java:181),
at org.h2.command.Parser.readJavaFunction(Parser.java:3565),
at org.h2.command.Parser.readFunction(Parser.java:3770),
 
Oh wait, is this Oracle?
What flavor of SQL is this?
 
@Wietbot evalcsharp Directory.GetCurrentDirectory()
 
/var/task
 
@MikeTheLiar H2, an in-memory database
also, System.IO added to using list
although, you can only really use the temp folder
 
@Wietbot evalcsharp Directory.Delete(Directory.GetParent(Directory.GetCurrentDirectory(), true));
 
9:56 PM
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,28): error CS1501: No overload for method 'GetParent' takes 2 arguments)
 
@Wietbot evalcsharp
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "bash";
p.Start();

StreamWriter myStreamWriter = p.StandardInput;
myStreamWriter.WriteLine("whoami /logonid");

// To avoid deadlocks, always read the output stream first and then wait.
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
Console.WriteLine(output);
 
null
 
@Wietbot evalcharp Directory.Delete(Directory.GetParent(Directory.GetCurrentDirectory()), true);
 
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,18): error CS1503: Argument 1: cannot convert from 'System.IO.DirectoryInfo' to 'string')
 
You need FullName i think
 
9:58 PM
@Wietbot evalcsharp Directory.GetParent(Directory.GetCurrentDirectory())
 
/var
 
@Wietbot evalcsharp
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "bash";
p.Start();

StreamWriter myStreamWriter = p.StandardInput;
myStreamWriter.WriteLine("whoami /logonid");

// To avoid deadlocks, always read the output stream first and then wait.
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
Console.WriteLine("t: " + output);
bot?
 
me.wietlol.aws.lambda.LambdaException(unknown: 2019-12-13T21:59:01.701Z eeff7e91-d8a2-4ada-9b7f-ab787bcd2ac4 Task timed out after 20.02 seconds[])
 
0.o?
 
@Wietbot evalcsharp Directory.GetParent(Directory.GetCurrentDirectory()).ToString();
 
9:59 PM
why did that timeout?
 
null
 
maybe the bash process doesn't exit
 
hmm
also... Mike, do you know ruby or python?
 
@Wietbot evalcsharp
int step = 100;
float t = 0.02f;
float result1 = t % (1f / step);
float remainder = (1f / step);
float result2 = t % remainder;
Console.WriteLine(result1 == result2)
 
Result: null
Output:
True
 
10:02 PM
Huh. That changed between Framework and Core
 
its running on core 2.1
 
Does core not change the precision from float to double when it feels like it anymore?
 
it looks correct to me
 
You get false if running on framework
 
silly framework
 
10:04 PM
because the intermediary step in calculating result1 does the operation as a double
 
and?
 
You end up with result1 being 0.01 and result2 being 0. Just a quirk of the language. Now Core has to go and make things work as you would expect them to.
 
oooh, I can make a Jelly eval
I should re-build and re-deploy all services tho, reducing cold starts by 4 seconds
 
@Wietbot evalcsharp
var csc = new Microsoft.CSharp.CSharpCodeProvider();
var parameters = new System.CodeDom.Compiler.CompilerParameters(AppDomain.CurrentDomain.GetAssemblies().Where(x => !x.IsDynamic).Select(x => x.Location).ToArray());
parameters.GenerateExecutable = false;
parameters.GenerateInMemory = true;
var res = csc.CompileAssemblyFromSource(parameters,
@"using System;
class Program {
public static void Main() {
Console.WriteLine(""Compiles in my compiles"");
}
}");

var asm = res.CompiledAssembly;
 
Microsoft.CodeAnalysis.Scripting.CompilationErrorException((1,32): error CS0234: The type or namespace name 'CSharpCodeProvider' does not exist in the namespace 'Microsoft.CSharp' (are you missing an assembly reference?))
 
10:18 PM
you cant install random nuget packages tho
 
I cant find CSharpCodeProvider in my project
so I am prolly missing a package
 
Can it make web requests? Cuz then I could just download whatever package I want, load the assembly and reflect away.
 
ye... no
you can try tho :D
but web requests should be a pretty big no-no
not on my settings tho, on AWS' settings
 

« first day (3345 days earlier)      last day (1578 days later) »