« first day (3635 days earlier)      last day (1307 days later) » 
03:00 - 14:0014:00 - 00:00

2:00 PM
It's fine though, they have a reduced price for non-commercial customers.
Just £29.99 per month per user
 
hmm...
I mean... I still pay €15,- per month for all of Jetbrains' tools
of which I mostly use IntelliJ, DataGrip and Rider (CLion and WebStorm now and then)
but I did get it for a reduced price
 
I pay for the R# + rider pack
And by "I pay" I mean "my employer pays"
 
why the pack?
 
Wanted to give rider a chance
I don't hate it because it's rider, I hate it because it's terrible
 
ah, wait, you also have the other .net tools?
dotPeek, dotMemory, dotTrace?
 
2:06 PM
Yeah, which I use all the time
I love dotTrace
 
Ben Popper on September 28, 2020
In an effort to rethink how documentation work, we recently introduced Articles, longer-form prose that can sit side by side with shorter Q&A. We sat down with team leads from across Stack to learn how this new features has changed their approach.
 
I rarely use them... I want to use them more, but I have no clue what to do with them
 
dotMemory is a good one for memory leaks
 
I use dotPeek to inspect dlls and shit
 
Basically, dotTrace is good if you are performance sensitive. Or if you're curious about what is slow
Although it will send you down a rabbithole of microoptimisation
That said, it the info it spits out is exceptionally useful
Like I found out the other day that I can't make my labels send to the printer any faster than 300ms
 
2:09 PM
We use ncrunch as test runner, that also tells us where the slow parts are
 
Yeah but you can just attach dottrace whenever you like
I've got the remote agent in a folder on the shared drives on our network so if someone says "this is going really slow" I can check out exactly why
 
JACK REACT TO THE FEEDS FASTER YOU LIL' SHIT
 
Jack, featurerequest "Don't shush feeds' xkcd posts" "Jack should not shush feeds' posts if they are an xkcd comic"
@CaptainSquirrel Make this work plz
 
@CaptainSquirrel Make jack work plz
FTFY
 
2:13 PM
There we go
 
@CaptainSquirrel MAKE JACK WÖRK
 
👉⌚ Jack
 
point watch Jack?
 
who choses those dumb names
HeidiSQL, mariaDB
seriously
 
someone with a wife/daughter named Heidi or Maria :P
 
2:16 PM
I guess
 
or you could call it Logical Integrated Software Architecture
 
Jack is slow as F... Jack
just accept it
on a side note... Wietbot is probably slower atm
 
Is that even English?
 
@Freerey Look at the timne
 
Well it should be
 
2:20 PM
as in, you slow
 
Yes Jack, yes it is
 
I getcha
Jack, you slow
 
@CaptainObvious @Squirrelintraining i'm pretty sure you both have access to the repo....
BETTER YET
 
inb4 make your own
 
ACTUALLY
no i wont lmao
i thought i had made the repo public, but apparently not
 
2:29 PM
Only by invitation currently lol
 
wellllll
you do have access to it
 
But I think Lee is is anyway
 
so feel free to fix him
 
....Come Again?
 
@CaptainObvious where is Lee Botler?
 
2:36 PM
Not running yet
I keep forgetting to play with him
Or publish him anywhere
But he is fast. At least for a bit
He can't even learn commands
 
@CaptainSquirrel nooooo
NOOO
 
@CaptainObvious I would certainly hope that "Hello World!" is fast
Wietbot should be able to respond quite fast as well, but database connections are messing it up
I need to pool the database connections somehow
 
Feierabend wie das duftet
Ihr Kinder habt nicht genug geschuftet!
 
2:51 PM
looked up "why are camels" and one of the first results I got were "why are camels extinct?" ._.
so they're talking about American camels, nvm
 
3:07 PM
@Wietlol Maybe you should use C#
Which has connection pooling by default
 
posted on September 28, 2020 by Phil Haack

When I deploy software, I’m lazy. Very lazy. This is why I lean heavily on Continous Deployment (CD) to automatically test and deploy software when it’s merged into my main branch. I don’t have time to deploy code by hand. So gauche!

 
C# will only make it worse
.net's dll resolving is an absolute nightmare for serverless functions
Java has a <200ms startup delay
but the environment has a 5s connection setup delay
 
Its only bad if you make it bad
 
and with 4 or 5 database connection nodes, it easily takes 25 seconds
platform specific compiled binaries should optimize that a lot tho
but I havent delved in to how to do those
and I only have 1 C# node, so I dont give a damn :D
 
@Feeds Shut It!
 
3:33 PM
😔
 
 
2 hours later…
5:37 PM
I have a setup in an MVC site where a set of calculations are being run async, and when they're done the results are saved to the database. These calculations have a few parameters they're based one. When the process starts, it logs those parameters to a DB table to indicate that they're running, and deletes them from that log table when the process is done.
I'm trying to figure out if there's a way if, when the process starts and finds that a process with those same parameters is already running, to somehow cancel or kill the original process.
 
5:52 PM
Why would you want to start the new one? Why not never start it
I don't know about you, but when I have an answer, and it's not going to change I try not to run that process again.
 
The new one has updated data.
 
same parameters ?
 
It's triggered by something the user does.
 
Then you'd need to send it a cancellation token to stop it
 
The parameters are ids in the database. It's the values associated with those ids that have changed.
 
5:55 PM
So they want a report on Ydata, then come in and say No I want XData
 
If I start two async functions, will they have different Process Ids?
 
So you cancel Y, and start X. The same caller should be 'waiting' for a response and is able to stop the Process.
 
I was looking at the Process system. That might help if it works the way I hope it does
 
You need to not drop the call and wait for task
can't void this
If you don't you can't ever stop the process.
 
Nothing is waiting for the process. It's a Fire-and-forget kind of thing.
 
5:57 PM
Well then you can't stop it, you'd need to set a circuit breaker in the code to see if the value still in the DB to be processed
and continue on processing.
Will show you how to cancel a process, and what you'd be able to do in an async call.
 
I'm talking about this System.Diagnostics.Process. Is that referring to something else?
 
No this shows you how to cancel an async task
Ya finding a question even on ending a synchronous call is pointing to async solutions with task.
Anyone have the problem of TFS complaining you have project to download even tho you did a commit and a get?
 
6:35 PM
@juanvan You mean the CancellationToken section of the video, right?
 
Yep
 
But I still need to store the task someplace where the later process can get to it, don't I?
 
later process? your caller is the only one waiting, unless you set some delegate and have it sub to the process?
Your caller is always on the stack waiting for the return, or to send the cancel
When the caller comes back, you can then process it (later ?)
 
If a task needs to be a called with the same parameters, it's going to be from a completely different user call.
 
Give me the walk over
Someone clicks a button, and the window closes?
 
6:41 PM
Async/await isn't my strong suit.
 
It's cool we will get there
Just tell me if I;m not being a people person, I won't be offended
Might be best to try his postman example?
 
There's a report displayed on the the page. The report itself is defined by two parameters called OrgId and PlanId. The report has different options and parameters that can be assigned to different line items. If any of those line item options get changed, a bunch of things need to get recalculated on the back end.
The report that is displayed on the page is just for one year, but once we calculate for that year to send back to the browser, we also need to calculate for ALL the years that the user has set up in their account and store those to a results table. That recalculation of all years is what I'm doing async.
The reason I'm doing it async is that it can take a few minutes to fully calculate.
Do you follow me so far?
 
Ya making a map
 
Now, if the user makes another change to those line item options before the async function has completed, then the data that async function has is obsolete. I want to kill it and start over again with the new data.
 
it's sideways bla
 
6:53 PM
?
 
Try again
That how your returns go right now?
 
I'm not sure I can follow that.
What's the middle header?
 
single Report
You're returning that first report, then something else is kicking off your async process, but the first caller already returned data
 
Changing the options causes a recalculation of the single year report, and then and async call for calculating all the years for that OrgId/PlanId combination.
That async call has its results stored to a database.
If the same OrgId/PlanId is recalculated again before that first async call is finished, it's because the options have changed again. So I want to kill the original async call and start the recalculation again.
 
When is data returned?
 
7:07 PM
Which data?
The one from the async?
 
Ya from the Recalculate call
or nothing is waiting for data?
 
It's not. It's stored to the database for use in a different section of the site so that other page doesn't have to wait for recalculation.
 
So you have a few choices (I don't really love any of them.) but maybe someone else has an idea later.
You need something listening on the async call, so it can cancel it
There a way to hold up the changes till the user accepts the report they just got back?
There any need for that?
 
The changes have already been made and stored to the database.
There's no real "accepting".
 
Well for that report, but not the 'years before'
Right now I see you running this async method as void, b/c you don't care the response
 
7:13 PM
Right
 
You just want it to process, you need something waiting on Task for that call
wonder if a delegate is the best method
I can't find anything on a delegate use.
Looking for someway for the org caller to be void, while an external listener is Task so it can cancel
 
Check me on this, a static property persists between user calls, and even different users, right/
 
Yes, and Delegates can be static or concrete
 
So I'm thinking a static object containing a dictionary where the key is the Org/Plan combo and the value is the task
 
7:29 PM
Ok lets say you have that static list, how do you access the already running threads?
Trying to think of this with out having to run some other process that's looking for those calls, or gets the call and has the cancel token. Then waits for the same call to come in again to stop it.
 
Any time code asks if a org/plan is already running, first remove any that have completed. Then see if any have that key.
 
Yes but you gave up claim to interact with it with the void caller
now you need some other process to pickup claim, or be the claim with the cancel token
 
It doesn't have to be void. I can change that.
 
But then your Org call will wait for all those other years to update as well
 
Can I just store the cancel tokens with them?
 
7:36 PM
But your data won't return till the async call is finished
your call it with void, it's not waiting for a response, it's out and done no feed back, i'm kicking this can down the road.
change your call to task instead of void
see how long the process takes, should explain it better
all async means is "don't let me hold you up" to the UI, you can do stuff with out me while I do this over here.
 
8:05 PM
Wait, the process that's doing the work has to be constantly checking the cancellation token to see if it needs to cancel?
 
yepper
you can't save the object state to get accessed in a new thread
well it's not checking, it's waiting
if that makes sense, the channel is open waiting for a response
 
9:01 PM
If it's actual process, as in, Process.Start, you can just kill it whenever.
Depending on your situation, using an external process may greatly simplify your code.
Remember that processes come at a MASSIVE overhead. Only take that approach if you're running just a few concurrently.
Otherwise, async with cancellation is the way.
 
9:31 PM
think he'd have the problem of rolling back all the transactions too
or rerunning them on the last known accepted values, if they didn't accept any of them.
 
 
2 hours later…
11:31 PM
 
mr5
o/
 
03:00 - 14:0014:00 - 00:00

« first day (3635 days earlier)      last day (1307 days later) »