« first day (3306 days earlier)      last day (1636 days later) » 

4:00 PM
Hey buds, quick question: Can I use VisualStudio to make software for a mac?
 
@Madcowe yes.
 
Why is the SO phone app alerting me to a message to me from 15 minutes ago that I was IN THE FRIGGIN CHAT ROOM TO SEE?
 
Not recommended since it then is basically a better text editor. but you can.
You definitely need mac software to make mac software
 
thank you :D
 
@Hypersapien that happens to me with the desktop website :P
 
4:02 PM
Well, will try to make software for windows in the first place before worrying about that hahahahah
 
I wanted to try getting into Android development, but apparently my computer doesn't have the right kind of processor to properly emulate Android.
 
All computers can emulate android
 
Properly emulate Android with any kind of real speed
 
are you using the out-of-the-box android emulator?
 
You should use an actual device
It's way way way better
 
4:05 PM
I tried Android Studio and it wouldn't even let me try. With Visual Studio I couldn't see my changes when I tried to modify the default project.
@CaptainObvious Wouldn't having to transfer it to the device every time be even slower?
 
ADB is your friend
 
ADB?
 
Debug the app right on the device
 
@JonathonChase map is an intermediate operation
similar to Select in C#
it doesnt do anything by itself
what you need to use depends on what you want to do
forEach is probably the easiest to understand
next to that, there is reduce, collect, fold and a few more
 
That's what I figured was the case, but if there's a forEach extension that'll do
 
4:11 PM
you can use for (element in list) { ... } or list.forEach { ... }
 
Yeah, forEach { it } worked just fine.
 
I dont think I have used the for syntax... ever
I even had to google that
 
i too prefer the higher order functions
although this koan's given solution was for((index,item) in items.withIndex()) which is okay, but not my preference
 
items.withIndex().forEach { (index, item) -> ... }
afaik
ofcourse, there is also forEachIndexed
which is a short hand for the above
 
I went with items.mapIndexed{(index,item) -> ...}.forEach{it}. Guess I could just drop the mapIndex and go straight for the forEach.
yeah that's better.
 
4:16 PM
what did the forEach do tho?
 
It's just using the builder functions to create the rows of this html table.
 
I came back to finish Docker and realized this is the kind of stuff you either use or forget.
Daaaamn son I'm re-learning on the fly.
 
ew
but yea, forEach is probably the best in that case
perhaps, even collect
 
is collect flatMap/SelectMany?
 
collect is like ToList
 
4:17 PM
Trainer: "Let's port forward our host to this docker container"
Me: "Oh right, docker run -it to start a new container with terminal integration.
 
because it is in F#. If I have to keep learning new function names for flatMap I might lose it.
oh right, kotlin is just flatMap
 
except, instead of collecting to a list, you can let the html builder collect the elements
 
Hmm, not seeing a kotlin collect extension. I know Java streams have a collect.
 
Packages at home, must resist urge to leave before time's over
BTW @Wietlol may I ask how old are you?
Because you seem to know stuff across several languages, I don't understand... how long do you spend every day programming?
 
@JonathonChase .asStream().collect() is probably the easiest
 
4:21 PM
gotcha, so kick it over to the java streams and may that extension call.
 
You also seem to keep your brain organized tidy, don't you ever mix function names?
 
@HéctorÁlvarez im 12
 
or assmeblies?
@Wietlol 12 years away from dying?
I'd say you're more like... 50 y-o
 
@JonathonChase fold could also be used
but not in all cases
@HéctorÁlvarez i didnt say years
 
Would the accumulator just be this?
 
4:23 PM
centuries
generateSequence(1) { it + 1 }
	.map { it.toString() }
	.asStream()
	.collect(::StringBuilder, StringBuilder::append, StringBuilder::append)
this is a general example for collecting strings using stringbuilders
 
.fold(this, { acc, elem -> acc.apply { elem }}) worked, so that's pretty neat.
seems like it would give me pause to revisit over just using the forEachIndexed
 
if you already have a builder, fold works better
val builder = StringBuilder()

generateSequence(1) { it + 1 }
	.map { it.toString() }
	.fold(builder, StringBuilder::append)
 
well, this is being done within the builder
 
considering it is inside a "dsl" builder, then usually forEach is the most readable
 
agreed
 
4:28 PM
links.forEach {
    a(it.url)
}
 
are local functions a thing?
they totally are.
 
they are, but they need to be defined before they are used
 
no hoisting, got it
 
the compiler doesnt use 2 phases to first compile the local functions and then the other content
but I havent used local functions thus far
local classes are nice tho
 
Playing by F# rules in that respect
 
4:32 PM
except when reflection comes into play
F# rules?
 
must declare before use
 
ah, yes
 
although F# is more strict with that. file order matters
 
most languages use multiple phases of compilation
first collect all types
then collect all their members
then go through the bodies of those members
this allows code to reference stuff further down in the file
or at least, a function body can reference functions further down in the file
but, this same concept is often not done for the bodies
 
makes sense for an object oriented language.
although C# does do that work on the bodies for local functions
 
4:35 PM
therefor, the compiler cannot know about a certain function that is declared at the bottom of a function body
C# can do it, and does it, because it has a very clear syntax
some languages, in their uncompiled state, are not that unambiguous
the compiler has to provide the meaning of the code
 
What's Wietlang's approach going to be?
 
Wietlang uses a similar approach to Kotlin
 
Naturally
 
it simply collects lexed tokens that form the body
when the compiler reaches the body compiling state, it will parse that body
its a bit more complex than kotlin's phases, but this allows me to use dynamic syntax
which kotlin doesnt have
anyway, im out
 
Later
 
5:03 PM
So again, my VS2017 tries to compile our solution and then goes "your project needs a RuntimeIdentifier 'win', add that and it should work" in a compiler error. When I add it, of course it doesnt work.
Open VS2019, compile, successful.
what the fuck
No updates available for VS2017
 
Lori Colston on November 04, 2019

Collaboration and information discovery should be easy, no matter what software platform you’re using at the moment. Today we’re excited to announce a new integration that will allow you to access the power of Stack Overflow for Teams inside of Microsoft Teams!

Internally we’ve taken to calling it Teams Teams, or just Teams². Whatever you choose to call it, this integration allows the users to take the ideas they exchange every day in chat and transform those exchanges into a rich knowledge base that empowers everyone at their organization to be more productive. …

Jisoo Shin on November 04, 2019

with Ben Kelly and Dean Ward

These days, everything in your life is connected. Your email connects to your phone, which connects to your garage door, which talks to your security system. It’s no different with the apps you use to get work done; everything needs to integrate smoothly, allowing you to quickly access relevant data from whatever tool you’re using at the moment. We have limited attention; anything not easily accessible in our workflow isn’t going to keep your attention for very long.    …

 
...two in a row? That's new.
 
Can we flag it for spam
 
@Squirrelkiller What version of VS2017?
 
@CaptainObvious We can. Doesn't mean we should.
VS2017 15.9.17
 
5:09 PM
Have you tried deleting all your obj folders?
 
I have indeed not. Shouldn't that also hinder VS2019?
 
I mean they get rebuilt on build if they don't exist
But VS 2019 is probably building differently than 2017
 
Woah it works now
Thanks :D
I just hope I don't have to do that every time I wanna build now
 
When in doubt, murder obj and bin
 
Good idea indeed
 
5:15 PM
As an aside, here's an explanation of the quicksort algorithm in the form of hungarian folk dance: youtube.com/watch?v=ywWBy6J5gz8
 
I'm not that done with work yet
 
Oh well save it for later, it's a real treat.
 
Yup, time to go home anyway. Cya!
 
5:32 PM
Is it just me or are the vast majority of Framework 4.8 document examples in C++?
Oh, duh, I have C++ selected in the language drop down.
 
When you have it as the default example is it a lot more ++ then I would like
 
ABP
5:51 PM
Hi Friends
I want to send a file with FTP to my server.
It's OK. I sent more than 1000 files to server.
But some of my files can't send with FTP and stay on 86%.

I test with FileZilla and CuteFTP and other applications. But I can't send this file!!!

Why I can't send this file just? other files are OK.

I can send the file to you if you want to test it
 
How big is the file?
 
ABP
123 MB
But I send 2 GB file with this
Without any problem
 
when in doubt, uninstall VS
when certain, definitely uninstall VS
 
ABP
@Wietlol for my problem?!
 
uninstalling VS will certainly help, but not solve your problem
can you identify the files that refuse to be sent?
 
ABP
5:59 PM
It's not VS problem. Because filezilla and others apps can't send this file. but can send others files. (Even bigger files)
 
it might me my machine that sucks, but that sorting algorithm looks SLOOOOOOOOOOOOW
it just took nearly 7 minutes to sort an array with 10 items
 
@Wietlol bruh wtf
 
Well, it has a very expensive compare and swap function
 
Are you sure the other side can accept a file that size?
they're not on some fat32 system
or some kind of directory limit?
What the one file?
One File to Rule them all and into the Night Bit them
 
>be me
>tell my execs that I tested my code and that it's ready to be sent out
>variable mismatch once the code goes live
so now you get shit like
"some of the castings for the selected pattern (multiple people) have been filed for a deviation by October 9, 2019 as of 3**-****"
 
> One technique I like for speeding up the solution, if you have a lot of for loops, is to just remove the last for loop
 
I'll have to watch that later, although it will probably just make me feel bad.
 
competitive programmer lol
oh boy another pronouns thing was launched and I think I've become blackpilled to all this
 
its funny that they are looking for a solution (still watching) and they crossed out the best approach they found so far
 
6:59 PM
what would that be?
 
(which is an N^2 solution (for the second problem))
the solution I have in mind is to cartesian product all points
so, you get all possible pairs
filtering out pairs of identical points
then, draw a line between them, and rotate it 90 degrees on its center point
the new ends of that line should be the two other points
if either of them are missing, the pair is not a diagonal of a rectangle
looking if either are missing would be two hash lookups
now that I wrote it... I realize you cant just rotate by 90 degrees
 
7:15 PM
it would work if you can easily find all points with n distance from x,y
where x,y would be that center point
 
7:45 PM
guh...feeling sad again...logged out of discord for like the fourth or fifth time in 2 months
also n^2 solution makes it sounds like you're talking about nitrogen :P
 
Why Task.Run is different than async methods, like http.SendAsync, doesn’t the latter create new thread to do its work just like ‘Task.Run’
 
8:01 PM
There is no thread
 
8:13 PM
hey guys, do i need to do more than app.UserCors() on the server to enable cors for testing between my client and server for cors?
 
hey
 
ANyone here able to help me out with a dataset issue?
 
i can try, whats the issue
 
After I make a new dataset, connect to the database, and select my tables, I get an unknown error. When I search the Dataset Designer it is throwing a weird error
type sqlDataAdapter could not be found in name sapce "System.Data.SqlClient
I have tryed adding the Using System.Data to the name sapce but it doesn't help
 
8:17 PM
does it compile? or are you getting error before you can even run
 
It doesn't complie
 
@JonathonChase That’s like 90% of 3rd party libraries I think, so the FooAsync method from a 3rd party library may end up with a manual created thread
 
THat doesn't really seem helpful sadly
I am using the visual studio dataSet function with handles most of this fine in my other projects. This project just wont work for some reason. even though the test connect works.
just realized that it was not ment for me.
 
8:38 PM
Can you show some code?
 
I can shouw the generated code from visual stuido
 
@AlRey be strong
 
the frustrating thing is this was working before.
 
thanks amigo..
oh yeah I went to mass this weekend...was interesting and I learned a decent amount...what taints things a bit is some angry catholic got mad at me the day before and was like "yeah, I'm not gonna listen to you because you're a raging homosexual and a disgrace to the faith"
 
It seems the SqlDataAdapter doesn't exsist inside System.Data.SqlClient anymore but that is where is should be no?
 
8:51 PM
when was it working before? like, was it working yesterday and it stopped once you logged in today?
 
Was working on friday.
when I started working on it today it stopped working
 
well, if nobody at work knows what's up and nobody changed anything that might be tied to it, that would be really strange
 
Im the only one who has access....
 
I really don't know, then; I would think something simply needs to be rebuilt if it's acting this way after you've done nothing.
 
Just looking at paste, could it be that your dll version changed and has no reference to that function it is trying to use?
Can easilycheck with dotPeek
or just going to references and use object explorer
 
9:02 PM
Ill take a look but I am currently just trying a reinstall of VS
 
I got question of my own. Not too experienced with wcf but here is the thing.
We are using wcf and consume it in web solution using httpClient, there is no reference added to this service.
Would it make sense to add wcf as a service reference since received json needs to be converted to class that is sent by wcf
My guess is that if there was soap involved I could call it directly from service reference right? something like
Servie1.MyMethod()
 
9:49 PM
@Raimonds adding the service as a reference you accomplish two things:
 
I believe I get my class / models as 1 thing
 
a) You get a class with specific methods
b) Those methods have a simple signature
 
Is this still a case if I am using httpclient to invoke those?
 
c) The autogenerated client handles the comunication
 
I don't think I am getting whole service there, just what data contract exposes
My guess is that by using httpclient we are getting more lightweight messages
since examples I see invoke methods from service reference, I believe that uses soapClient of some sort
 
9:52 PM
If the WCF service changes in the future, you would need to adapt your code to match it. If you do a webclient that forces you coding the SOAP by yourself
If you use a reference, updating the reference would be all
No "more lightweight" at all, behind the scenes both things would do a SOAP
 
Is there a reason why there is no handler that uses httpclient
like autogenerated one
 
Well the WCF client allows later modifing the comunication with no need to touch code
If using WCF you later get everything into the same machine, you cand do named pipes with WCF
changing only the config files
 
So there would be no difference in performance if I would switch from httpclient.getAsync(url) to myserviceReference.method1() ?
 
Dont think so, in fact your code would be less prone to bugs
Do note that the named pipes scheme is an extreme use case
But changing it from http to http would be straightforward for example, and a more realistic use case
to https*
 
I have run into cases where there are bugs due to mismatch of classes
and they are hard to notice....
 
9:58 PM
I have seen working with third party web services that things stop working, you update the reference and then the method signature changes, you do note non documented changes
With a webclient you would need some debugging of the SOAP messages to realize the same
 
won't it throw compile time error when you update service
 
Yeah, and then you do note what the hell happened, with no need of breakpoints on the SOAP returned
 
I can't think of change that would go unspoted right away
How compelx would be migration
I guess not that hard
 
A method with 3 parameters now it accepts two, or required 4... That would be a compile error using a WCF client
 
if now I would benefit from schema service provides and instead of httpclient urls I would have strongly typed variables
 
10:01 PM
With a webclient, you would need further testing until you notice
 
In my case this is internal service, so unless we forget to update all apps :D
and we do forget it a lot
 
Yup, a service reference would provide you strong typed methods
 
I need to backup this with actual performance checks
my manager is quite strict of any changes
 
Feel free to do all the testing you need to feel confident
 
most of the times because he has no idea what is happening or I am too bad at explaining things
 
10:03 PM
And for gods sake, do create a visio of the applications, where are they hosted and how they communicate between them
 
[App] <---> [WCF]
done :D :facepalm:
 
If something gets down, or you plan to migrate something, you will know what relies on what
 
I am not changing wcf I guess
it's just a reference in web solution that consumes it
maybe I will need to add new endpoint that enables referencing, not sure how that thing works
 
I made a workflows service that all client apps used, and it only passed the name of the web.config endpoint of the client. ClientReference client = new ClientReference("endPoint_name");
Boom, the WCF engine handled the rest
new app? No problem, just add it to the web.config of the web service
@Raimonds I meant documenting all your applications ;-)
 
at this point documentation would look like nightmare
but I get the point
 
10:11 PM
I got a client when I had to migrate several servers to a new CPD, client knew nothing about the impact
 
what would be ClientReference
at this point
will this be of type "clientReference"
 
I reviewed the apps references, created the visio... The migration was flawless because of that
 
and if I wanna consume endpoint i'll just use client.something
what kind of transport does it use? :D how do I controll it
 
Client --> Server (saying what endpoint to use)
Server notified events to the client, instantiating the client WCF endpoint
@Raimonds The endpoints are defined in the web.config files usually, you colud code them, but it is kinda pointless
You can have a service with windows authentication for internal users and with basic or https for external users
So external do require a client SSL certificate to consume it, but trusted users would use the other endpoint
The only coding server side would be "check if the provided certificate is the one you emited"
 
V.7
And check user's behavior. If it doesn't spam etc.
 
10:22 PM
I think we use whitelist on IIS or something since I can't reach deployed wcf from browser as I can from work network
 
11:15 PM
This validator is definitely getting set to false. And this Page.IsValid is definitely still true. Everything is terrible.
 
11:40 PM
Oh, I was just being an idiot.
That seems to be the problem an awful lot.
 
Guys what's the best way to debug stackoverflow exceptions?
 
 
@notatroll step into?
perhaps just go through the repeating stack trace and log something that you might think is useful
then you might see from which point it is repeating with the same values
 

« first day (3306 days earlier)      last day (1636 days later) »