« first day (3449 days earlier)      last day (1493 days later) » 
02:00 - 14:0014:00 - 00:00

2:35 AM
> An operation is not implemented: stop being an idiot
oh, ye... I forgot I made quite useful exception messages
 
 
1 hour later…
mr5
3:59 AM
So I'm at a disadvantage situation between the estimate and the expectation. They want me to finish an app ASAP without integrating our base library into it. One of the goal also is to make this app as a template to the upcoming projects for this company as well. So, being the guy who always wants to make things right the first try, I take the longest route. The estimated time is over due (~20hrs and counting) but the project is still at 70% completion.
most of the development time was spent on recreating what I've done/contributed to our base library.
am I wrong with this one?
 
4:55 AM
Hi sir..I am having installer with version 1.2.3.4, which is hardcoded in wxs file. Now i need to change the version like "1.2.3.4_temp".i.e, assigning the string to version. As we know version attribute takes x.x.x.x and x as integer. Is any way to get the version as 1.2.3.4_temp?
 
5:07 AM
can u please help on this?
 
mr5
afaik, version is a string and not a number
most follow the popular convention major.minor.build (revision)
 
is it not possible to have x.x.x.x_string like this?
can we have modify convention major.minor.build(revision) to customize patterm?
 
mr5
have you tried it?
 
1.1.0.0_alpha2
not possible in vsproj
you can only put int
 
5:36 AM
for async await... if im using WPF
and i have 2 buttons, btn 1 = print on textbox an essay, btn 2 = print an essay
and i set await on btn 1, if i click both buttons quickly but btn 1 was pressed first, would btn 2 activate always after btn 1?
 
mr5
5:55 AM
you should put that logic in the button or command itself
 
yea
no point in vamping
 
@Adan no
or yes on some scenario, and depends on how you 'print'
you should do a checking in btn 2 make sure !string.IsNullOrEmpty(textbox.Text)
 
yeah
 
mr5
6:20 AM
Has anyone worked with OData before?
It looks like it sucks
 
6:31 AM
yo yo yo
 
what thread does async/await use?
the main?
 
mr5
no
it pulls out from thread pool
 
got it
 
mr5
6:47 AM
eh considering the method is wrapped in a Task
 
it basically disocuppies the main thread to use other threads/hardware
by giving a message to the thread, and then when it's done it calls the main thread wit hthe result
so in GUI apps, the user can go along uninterrupted
async/await with task.Run calls for any threads available to do intensive CPU tasks
while still sending a message to the main thread and back
 
mr5
I never had the need to use Task.Run
 
7:07 AM
how do you stop a loop from another method ouside the loop?
ex: on main --> loop(while true)
btn1: stop loop
 
while (!btn1.clicked)
 
oh cool
i didnt know u can do buttons ; )
 
you do loop on main thread?
 
nope, i use task.run
 
Buenos dias
You can pass a task a CancellationToken
That token can be cancelled from outside, and queries from the inside. No threading issues.
OnClick() => cancellationTokenSource.Cancel();
in the loop you go whlie(!token.IsCancelled)
Then you don't have to query the button itself
 
mr5
7:17 AM
@Adan that's a terrible use for task.run
 
looping uses a lot of resources, having it run on a separate thread is bad?
i dont want it on the main thread
@Squirrelkiller gm, thanks
 
mr5
fair enough. but then, you will be accessing UI objects on another thread where most OS restricts the developers from doing
 
And also if you aren't restricted by anything, calling UI elements from a background thread in a loop will make your UI stutter
But that is gladly what the CancellationTokenSource is for
 
mr5
yeah, use another variable for your sentinels
 
7:37 AM
good morning
 
Hey Hector, hope you're safe in your home. Seems spain is hit really hard.
 
Yes, that would be no problem
Yesterday night the government passed a vote by unanimity to extend the quarantine by an extra 15 days.
 
Does home office work well at your comany?
 
Heard going outside in Spain arent allowed
But special permission for dog
So people is borrowing the dog from friends or neighbor for going outside
 
7:58 AM
 
We have permission to go out for food/essentials/essential work/Pet walks/JoggingAndWalksInTheParkAndStuff so we don't have that problem.
 
when i run this..l
 Action b = () => {
does the code block run synchronously?
 
@Squirrelkiller I've been working from home for 4 months now
yes it does
 
because i got unexpected results...
can multiple task.runs run ?
 
actually, the policy is pretty cool. You may work from home as long as you have a reason to do so, and nobody will bat an eye
 
8:12 AM
Mornig children
 
@CaptainObvious Hi dad
 
><L><><><
 
How was school?
 
 Action a = () =>
            {
              //do stuff aswell, thread.sleep(100,...)
            };

            Action b = () => {
                var answer = "";
              while(true)
                {
                    //code
                }

                MessageBox.Show(answer);
            };


            await Task.Run(() => { Parallel.Invoke(a, b); });
here's the problem, answer spits ""...
 
@CaptainObvious It sucks! I wanted to play SNES, can I?
 
8:16 AM
why isnt the stuff under action b synchronous?
 
Fine, you can play for an hour or 2
@Adan It should be? Unless you mean running at the same time as a, in which case probably because you're using Parallel.Invoke which as the name suggests will invoke the 2 methods in parallel
 
ur right, the prob was inside the while statement
 
use await Task.Delay() instead
dont so while (true), it was bad approach
 
the 'while' checks for a value to be filled, when it's filled continue synchronously
i know, 'true' was just a test
code is fine now
 
Action a = async () =>
{
  //do stuff
  thread.sleep(100,...)    // <- this is bug
  await Task.Delay(100); // <- use this instead
  //do stuff
};
 
8:29 AM
Why not use AutoResetEvent or ManualResetEvent or ManualResetEventSlim?
 
I am not able to search ?. operator
what does it do?
nvm got it
member access
 
null-conditional operator
 
member access
 
Available in C# 6 and later, a null-conditional operator applies a member access, ?., or element access, ?[], operation to its operand only if that operand evaluates to non-null; otherwise, it returns null.
 
yeah okay
xD
registeredFrom.Date < registeredUntil?.Date
This won't break right?
registeredUntil is nullable Datetime
 
8:34 AM
Just a sugar to if (something != null)
 
what about <, > sign?
if (something > null)

doesn't make sense
 
Maybe...
if (registeredUntil != null)
{
    result = registeredFrom.Date < registeredUntil.Date;
}
 
so no point of using that operator?
 
It just a short-hand to writing that kind of code
 
@Shad this is just fine
 
8:37 AM
oh
thanks :)
 
for triple confirm
!~>((DateTime?)DateTime.Now) < ((DateTime?)null)
!=>false
!~>((DateTime?)null) == ((DateTime?)null)
!=>true
 
:D
 
Too much abstractions are confusing lol
 
Ah fuck
There is a non-zero chance I left my phone at home
 
oh no
 
8:41 AM
hello
 
I miss tasty foods :(
 
a chance that forget to bring something is higher when I wears a non-pocket
 
I've been eating canned food, noodles, eggs, rice for many days
 
After the epidemic, my weight should be significantly reduced. Because i can't eat midnight snacks
Expecting < 50kg, now 52
 
There's no snacks for me too, need to save foods for many days
 
8:48 AM
Damn you're almost lighter than me
 
why i keep getting invalid operation exception
 
How tall are you
 
in sql server when trying to query table for values
 
@techno Sounds like the operation you're trying to perform is invalid.
 
0
Q: Invalid operation exception while checking if value exists in Table

technoI use the following code to check if the email exists in the table.This method always returns 1 even when i can see the exception in the debugger. public int checkifuserexistsinternal(string email,string mainauthtoken) { if (mainauthtoken != authtoken) ...

 
8:48 AM
>asked 8 minutes ago
nononoono
 
167 if hairs isnt counted
 
@CaptainObvious huh?
 
Taller than many girls here on average
 
So you're slightly taller than me and slightly heavier
 
you mean pandemic :P
 
8:50 AM
Losing more weight is probably not healthy
 
But Trump said ____ virus
 
Uh
||welcome-c#
 
@$0 Welcome to the C# chat! Please review the room guidelines and tips. If you have a question, just post it, and if anyone's free and interested they'll help.
 
@techno use cmd.ExecuteScalar() instead
 
@nyconing nah use cmd.ExecuteOrder66()
 
8:51 AM
wat
 
order 66 is the answer
:)
 
@techno General consensus is weight a fwe hours for your question to be answered before harassing chat about it
Somebody is probably working on an answer now
 
@CaptainObvious okay.. uhmm you might want to check your spelling
 
@JackSparrow is this the only thing jack does now
 
8:53 AM
Is that even English?
 
no u
 
oh lee 🤦‍♂️
 
Can't go out, so depressing
 
@nyconing still the same issue
 
@HéctorÁlvarez I guess quarantine isn't too hard on you then
@CaptainObvious You are very small. What does your BMI say?
 
8:57 AM
Uh
Probably underweight, one sec
 
@nyconing How do you feel with your current weight? Going by the common definition you're definitely underweight. I had that too for most of my life though, and I didn't really feel unhealthy.
 
@CaptainObvious Dude wtf go eat something
 
"Healthy weight range for your height: 7,10 to 10,6"
 
lol
 
8:59 AM
But I'm 7,13
 
so Im going to eat something unhealthy to increase weight?
 
I was around 18 and sent to a (Leo says health resort) to put on weight
 
You can be healthy and gain weight too
 
Nah you can still eat healthy
 
im deffo overweight but thats mostly down to the fact im a fuckin gym lad 💪
 
9:00 AM
Like meat
 
@Squirrelkiller nah, actually it's a godsend
 
Put more proteins on your plate
 
Im already ate at lease once unhealthy meal in 3 days
 
Hold on a sec
 
@Harry You're definitely not a gym lad these days though
 
9:00 AM
always been a huge geek, so...
 
I just changed the details and put them back again and it's come out with a different result
 
@Squirrelkiller no :( im trying to do home workouts or play football against my fence in the garden
 
Fucking government IT
Literally the same details input
 
@HéctorÁlvarez My girlfriend rightfully observed that I have absolutely no problem with not leaving the house for a week straight lol
 
but Im not going to increase my weight....... Im looking fat
 
9:02 AM
I remembered your face, looks slim tho
 
@nyconing workout helps too. Makes mass go into the rihgt places. And muscles are heavier than fat.
 
Oh shit, the US and Italy are almost past China
 
oh, this is helpful
 
Im programmer btw, sitting all the day
swimming sometime
 
9:04 AM
That's a very strange map
 
Yes it is
 
...and gaming :P
 
@CaptainObvious it takes a pandemic to show that Spain can win at something.
 
I think it's to put China as close to the center as possible as the "center" of the outbreak
 
I don't know about your downtimes, but I have dumbbells nearby to use during loading screens while gaming
 
9:05 AM
But it is a very odd way of showing the world. Thanks Financial Times.
 
But wow, US and Italy are indeed doing all they can to keep up with china.
 
they hates china more than before now
 
The US added 13,355 in the last day
Meanwhile in the UK we added 1,452
 
We have many stubborn people going out despite lockdown order in Malaysia
 
Global recoveries from the virus rose by 5,349, to 114,228. Global confirmed cases rose by 48,461 for comparison
 
9:08 AM
Some still secretly gathering
Some lied their case to doctor
 
there was a barbecue in coventry the other day during lockdown
 
their religion told more people pray, the wish will come more true
 
That's why I dislike religion
 
nah this is good concept
 
How?
 
9:11 AM
but not when plague pandemic
 
I was a little bit religious minded during my early age
But after that, it is nullified
I became 100% atheist
 
In general, religion has good ideas. The problem is when it becomesobsessive or fanatic.
 
Probably affected by socialist thinking
 
Like, every religion has some variation of "be nice to other people". And what happens? People use ever other religious "rule" they can to not be nice to other people.
 
The more I understood about current China, the more socialist thinking affected me
 
9:17 AM
Bible teaches you to love other people. Kama Sutra teaches you how.
 
But I'm trying to balance it
Trying to be neutral...
 
We are now at middle of curve accelerating phase
Soon we ll reaches 10 thousand
 
It is expected to be like that
Since too many "degil" people
And many balik kampung during lockdown order
Think it is holiday
 
Damn it I wish the Newtonsoft json wasn't so damn slow
 
9:26 AM
@CaptainObvious System.Text.Json claims they faster than Newtonsoft.Json
Im just ran out of my mask, Im re-using them
 
According to a bit of profiling and data from Application Insights, 87% of processing time on one of my method which gets called ~13k times a working day (which takes up a cumulative 4.8 hours of processing time) is taken up by the Newtonsoft library
 
How can you reuse them, it is supposed to be disposed properly after use
 
I'm looking into switching to the new one or Utf8Json which is allegedly faster than the new MS one
But newtonsoft is taking up about 4.2 hours of those 4.8 hours
 
9:43 AM
ahoy o/
 
    please any one help me to parse this XML to Model Object
        <?xml version="1.0"?>
-<Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WCFServiceWebRole1">
<City>København Ø</City>
<Country i:nil="true"/>
<Id>5773</Id>
</Employee>
hello friends anyone is online
 
@CaptainObvious do the postmature optimization than...
 
I have no choice, no mask vs mask reuse
mask may damaged when disinfection, but still waterproof
 
10:08 AM
I only got 9 masks left...
 
I have no mask, better: I just don't leave my apartment lol
Or well, about once a week for supplies at the current rate
 
mr5
10:25 AM
pew
last day tomorrow :3
this wfh is making me skinnier and skinnier over time
 
10:43 AM
Hm I doubt it works like that for me. But I haven't weighed myself in years, I don't even know how heavy I am. My body seems fine, just a bit too much on the tummy, and that information is enough for me.
...is weighed the right word? Seems weird. Maybe because I never used it before though.
 
Yeah, it's an odd word but it's correct
 
/o
 
11:19 AM
!~shiba
 
@Hans1984 Maybe you meant: shiba
 
maybe
 
ohno
I have to do groccery shopping today
THAT day has come..
where I have to leave the house
 
11:38 AM
hi
i require file tax deployed on IIS server as the application uses it
so i have done the following `string htmlFilePath = HttpContext.Current.Server.MapPath("~/");
string contents = File.ReadAllText(htmlFilePath+@"\vision");
return contents;`
but the file is not found ...
 
12:00 PM
 
12:16 PM
Welp, looks like I'm completely rewriting the file utilities which haven't really changed for over 4 years aside from switching to Json serialisation from Binary serialisation
It's still in VB, but it'll be a hell of a lot easier to read and maintain. As well as just being better and easier to extend
 
mr5
look at all of those different configuration files from VS
such thing should be standardized
 
I don't wanna work today
yawn
 
12:36 PM
OOF
"More than 3 million americans have registered for unemployment"
Specifically, 3.28mil in week ending 21/3, up from around 300k the week before
 
!~translate 我希望我的員工在家工作沒有偷懶
I hope my employees work from home without being lazy
·from Chinese Simplified
 
lol
 
@techno Put it in a wwwroot folder
@nyconing Why are there no symbols for "work from home"? Seems like a fairly normal phrase.
 
culture.
We have multi-races, multi-cultures, multi-religions, multi-lingual in country live and work together, it is pretty common we mixed the language in sentences
 
12:51 PM
I mean, that's what you get for making fulltime employment the exception instead of the rule
At will employment == at will unemployment
 
What are employment rights anyway
 
The right to steal from others in an organised way within a "legal" framework of false promises.
 
1:40 PM
WHY IS Clear All NuGet Cache(s) DONE ON THE MAIN THREAD
 
Because it's a cli tool and those don't care about block theui thread becuase there's no ui?
 
Can anyone tell me, why does this throw me exception, that query could not be translated?
var application = await _db.CustomerApplications
                .AsNoTracking()
                .Include(i => i.CustomerApplicationFields)
                .Include(i => i.Customer)
                .Where(x => x.Customer.PublicId.Equals(formId) && x.IsPublished)
                .OrderByDescending(o => o.Version)
                .FirstOrDefaultAsync();
EF core 3.1
 
@CaptainObvious nothing special for god damn visual studio, a lot of annoying processes ran on the main thread
 
The LINQ expression 'DbSet<CustomerApplication>
    .Where(c => !(c.Deleted))
    .Join(
        outer: DbSet<Customer>
            .Where(c0 => !(c0.Deleted)),
        inner: c => EF.Property<Nullable<long>>(c, "CustomerId"),
        outerKeySelector: c0 => EF.Property<Nullable<long>>(c0, "Id"),
        innerKeySelector: (o, i) => new TransparentIdentifier<CustomerApplication, Customer>(
            Outer = o,
            Inner = i
        ))
    .Where(c => c.Inner.PublicId == __formId_0 && c.Outer.IsPublished)' could not be translated. Either rewrite the query in a form that can be trans
 
@Squirrelkiller But the command is run from the UI
 
1:53 PM
What UI?
@Taurib Try with "x.IsPublished == true"
Although I'm not sure about the actual problem either
 
No, that doesn't change it
Migrating progress from .Net core 2.1 to 3.1
\o/
So many random things are broken now
 
02:00 - 14:0014:00 - 00:00

« first day (3449 days earlier)      last day (1493 days later) »