« first day (3655 days earlier)      last day (1283 days later) » 

12:38 AM
you would have to find out how the format works
png, jpg, gif, etc
whatever you used
 
mr5
1:18 AM
you need to have faith with yourself
 
mr5
1:56 AM
@Wietlol that .let, .apply, ... are called functors right?
 
functions
functor is like a monad
like nullable
 
mr5
wow so quick
is it defined in the base type?
how about the .map? is it just called functions only?
caveModel.endingPoint?.let { endPoint ->
    canvas.drawCircle(endPoint.x, endPoint.y, 60f, pointPaint)
}
this is pretty cool feature
 
2:19 AM
you can also just remove "endpoint ->" and replace "endpoint.x" and "endpoint.y" with "it.x" and "it.y"
 
mr5
nah, I like to be descriptive with my variables
 
it is a habit you have to learn :D
just like using val instead of var :D
 
mr5
no. I know how those two works even before learning kotlin. I just always get confused with them because of Swift.
the implicit it is also similar when defining lambdas with parameters. I don't name them a,b,c
the only exception is the for-loop with i,j,k in them
4 mins ago, by mr5
no. I know how those two works even before learning kotlin. I just always get confused with them because of Swift.
prolly not Swift, but C#. I'm not even sure anymore
 
2:43 AM
it is not similar to C# tho
i wish C# had default lambda parameters
 
mr5
yeah not the same semantically, but I actually never use const in C# when declaring local constants cuz it has more letters in it.
ah my bad. there seems to be no way to declare a local immutable variable in C#
and now I just found out that const in C# have different meaning to what I thought.
 
3:23 AM
caveModel.endingPoint?.let {
    canvas.drawCircle(it.x, it.y, 60f, pointPaint)
}
is also shorter than
caveModel.endingPoint?.let { endPoint ->
    canvas.drawCircle(endPoint.x, endPoint.y, 60f, pointPaint)
}
you could also do
caveModel.endingPoint?.let { (x, y) ->
    canvas.drawCircle(x, y, 60f, pointPaint)
}
probably
depends on what type the point is
and even then, if you cant, you can make it work
fun Point.component1() = x
fun Point.component2() = y
iirc
 
mr5
what is the order of destructuring in Kotlin?
it's working! nice
I like that more compared to implicit it
 
4:17 AM
posted on October 15, 2020

I recently moved my home NAS over from a Synology DS1511 that I got in May of 2011 to a DS1520 that just came out. I have blogged about the joy of having a home server over these last nearly 10 years in a number of posts. I setup a home backup strategy without the cloud I later added CrashPlan Cloud Backup and still use it. A few years back I set up VPN on my Synology as well an internal

 
4:29 AM
 
 
4 hours later…
8:57 AM
@Squirrelkiller The emails I get from github are a better ping than here anyway
 
9:28 AM
aaaaaa why don't interfaces support static methods (I know they kinda do in C# 8 but then you aren't required to implement them as they can't be static)
 
 
4 hours later…
1:11 PM
@CaptainObvious im trying to think that through..only static methods i know of belong to a class, but dont act on an obect..theyre like glorified global functions with the syntactic sugar of belonging to the namepace that is a class..so without an instance object, what is the point?
 
It's just some things that I want to have from implementers of an interface. Like the user friendly name in instances where a user has to choose which implementation to use, I shouldn't need to isntance the interface when it's always going to spit out the same thing
It's probably not the best way of doing it but this is the first time I'm really making my own interfaces which will have multiple differing implementations
 
mr5
1:25 PM
how about extensions?
 
Not sure how that'd help?
 
mr5
- it limits the scope
- it would only accept certain type you specify, in your case, the interface
 
1:53 PM
Hmm, I think it's been misunderstood. Don't worry about it, it's fine
 
2:13 PM
'sup
 
Yoo
If you restart the bot it should load the changes you made in
 
Nice. Got an EMail so I thought I'd check if it still runs.
Botler, info
 
@Squirrelkiller Sorry, I don't know that one.
 
Botler, help
 
All 'native' commands (you can get more by asking me help <command>): about, conf, cs, help, say, shutdown, tell, test,
 
2:19 PM
Wait what happened to eval
 
it's commandName is cs
 
Botler, eval Console.WriteLine("Wut");
 
Despite the typename being eval
 
@Squirrelkiller Sorry, I don't know that one.
 
ah makes sense
Botler, cs System.Console.WriteLine("Test");return "whateves";
 
2:20 PM
Script compilation error, dumdum:
(6,38): error CS0103: The name 'Console' does not exist in the current context
(4,49): error CS0161: 'Script.Execute()': not all code paths return a value
 
hahahha
 
Script compilation error, dumdum:
(4,49): error CS0161: 'Script.Execute()': not all code paths return a value
 
It has to return something
 
cs> whateves
 
FINE
OK gtg bye
 
2:21 PM
I mean you can just do this too
botler, cs 1+1
 
cs> 2
 
botler, cs "i am dum"
 
cs> i am dum
 
mr5
cs> while(true);
 
hmm
that might upset the bot
Are you still alive
 
2:25 PM
yes
 
huh
wait you didn't invoke it properly that's why
You need to invoke it with botler, cs <code>
 
mr5
botler, cs while(true);
does it support other languages too?
One of Philippines' 3 main telcos doesn't implement SSL
 
2:46 PM
Well no not yet, it's a pure c# bot
I wonder if you broke it that time
botler, say I'm still alive
uhoh
 
I'm still alive
 
oh there we go
 
 
3 hours later…
5:50 PM
@CaptainObvious how does your cs eval work?
in terms of security
 

« first day (3655 days earlier)      last day (1283 days later) »