« first day (3042 days earlier)      last day (1907 days later) » 

12:01 AM
glances at clock LIAR
Update: I slid, but not to my doom.
 
mr5
12:12 AM
where in the world are you? it's 8:12 am globally
 
V.7
globally?
It's 38 times globally
Btw, good morning o/
 
12:30 AM
Morning O/
 
hi guys
in this link
https://stackoverflow.com/questions/38630076/asp-net-core-web-api-exception-handling

what is MyNotFoundException ?
MyUnauthorizedException
 
I think it's custom Exception.
you can define it
 
what about logging exceptions to file in .net core ?
 
mr5
I'm still eating the bread that got expired 4 days ago
 
@Bassem do you want to log exception messages?
 
12:44 AM
i make exception middle ware , like the answer in this link
https://stackoverflow.com/questions/38630076/asp-net-core-web-api-exception-handling
all i need now is to log that exception to file
should i use NLOG or there something built in .net core
 
mr5
Why not roll your own file logging? It's pretty easy to do
Make the file name the current date in the format of dd-mm-yyyy. Each line content would have a timestamp for easy tracking in the format of hh:mm:ss -> {0} where {0} is the message.
 
i can't understand mr5
sorry
 
mr5
138
A: Create a .txt file if doesn't exist, and if it does append a new line

Daniel HilgarthUse the correct constructor: else if (File.Exists(path)) { using(var tw = new StreamWriter(path, true)) { tw.WriteLine("The next line!"); } }

 
Now in my entire application , if any exception occurred in API
it print the error message
 
mr5
This should get you started
Just enclose it in some singleton class and you're done
 
12:58 AM
use System.IO.File.AppendAllLines()
Simpler. Clean.
 
so why people use Nlog !
 
Noted it by using System.IO.File.AppendAllLines() you does not need to check if file exist.
What is Nlog
 
1:50 AM
(thinking)
even I didn't hear about Nlog...
is that useful?
 
May be useful in certain complex situations
 
Currently searching about Nlog... if it can log all of exceptions as a file or record on database, it'll be really useful for me. :$
 
Nah you can just log your exception by few simple line.
 
yeah. I know. I made my own logger for this.
 
catch global exception, and then write it to file, then throw it (or handle it so app wont crash)
 
1:55 AM
I replace all of Console.WriteLine as Logger.Log ( Logger is my class for print all strings on console. )
(removed)
 
 
4 hours later…
mr5
6:22 AM
(removed)
 
6:49 AM
good (ugt) morning
 
Goood moorniiiiiiing CeeeeShaaaarp!!! Have you found the world to be a tiny place lately?
 
7:31 AM
@Squirrelkiller nope, several thousand kilometers from the place I was born in a completely different culture, and I'm still working on that one
 
ohayou
 
\o
 
how are things?
 
V.7
o/
 
Things is fine. Getting over a massive hangover today, I'll bet.
 
7:41 AM
hang in there
 
what have you drink?
 
Just beer
 
oh. That was my sunday.
fits my profile
 
8:03 AM
Question is, what the hell did Things drink?
 
beer
Oh I'm fine. I was referring to Things
 
What the hell kinda beer did you give Things
 
Things?
 
Stranger
 
so>
- how are things?
- Things is fine.
- what the hell did Things drink
 
8:11 AM
34 mins ago, by Neil
Things is fine. Getting over a massive hangover today, I'll bet.
 
don't be confused
 
Poor Things
 
t/Things are fine
 
Must be a hell of a guys, I wouldn't be fine in that situation.
 
is there any way to use Speech to text without Chrome/Opera?
 
8:26 AM
gmrng
 
mr5
gnrmg
^,....,^
^ that's how I imagine avnir after saying that
 
Is that a catfish?
 
8:45 AM
Well if it is a catfish it would have tried to lure you to a local catfishing place and/or made you pay for sex
 
Catfish - INFORMAL•US
lure (someone) into a relationship by means of a fictional online persona.
"he was being catfished by a cruel prankster"
 
It's also, you know, a fish.
 
@AvnerShahar-Kashtan Never heard of that definition
 
@Neil It's not quite as informal, I know.
Who's been making Cap replay Labyrinth, frame by frame?
 
?
 
8:55 AM
All images Cap posted that are starred --->
Most are from Labyrinth, the movie.
I see now that it was last night's entitled jackass.
 
No, it said by MikeTheLiar
 
9:06 AM
,^....^,
and what is this ?
!!Is it also a catfish ?
 
@Hans1984 Indeed
 
two commas, two caret symbols, and 4 periods
 
to me it always will be a catfish
 
9:28 AM
good morning :)
 
Is it? Is it?!
 
what part dont you understand?
It's only two words
 
mr5
I see
avnir is grumpy this morning
 
same
doesnt mix well...
 
mr5
u guys take your coffee
 
9:36 AM
didn't help..
its just a bad day
and im getting sick
 
Just unfocused. Had two cups of coffee so far, will probably get more.
 
Just make a investment into your bed.
 
haha , that wouldnt solve my problems though
my bed is just fine
 
Other than oxygen, water and food. Bed is most important thing we live.
 
if you can sleep well in your bed without a backache, I don't see how much better it can be really
 
9:51 AM
yeah its very important
I agree
 
Good sleep given a 'buff' that last whole day with good mood and boosted concentration.
 
I actually crashed at 21:30 last night and slept well, but am still tired.
But now I decided to fortify myself with chemicals, so doing a bit better.
 
How about chemical bed
Actually I always laughed when I saw some product they claim 'NO CHEMICALS'. It must be a flock of photons powder.
 
lol
 
Meh. The response "everything is chemicals" is equivalent to "but tomatoes are fruit!" when making the distinction between fruits and vegetables. Saying "X is chemicals while Y isn't" is a clear and obvious distinction between lab-engineered vs. non-lab-engineered, and it's disingenuous to pretend that the original meaning isn't clear.
 
10:00 AM
Yeah, then lets change a word: everywhere is lab.
 
Sure, you can make the claim that lab-engineered isn't inherently any different than non-lab-engineered (it's a valid case, and I agree with it in many cases), but telling someone on the "chemicals are bad!" side of the argument "but everything is chemicals!" isn't disproving their claim, simply using semantic tricks to avoid the actual discussion.
 
Hi Good Morning
 
Yes people dont give trust on artificial products is interpretable.
 
10:12 AM
morning
 
"No chemicals" means literally nothing
 
No, it literally does mean quite a lot.
 
If you take that literally, it's a vacuum, and if you don't, it can be interpreted as anything
 
Only if you interpret "chemicals" in a very strict way, ignoring connotations and the way that actual humans communicate.
When I said, earlier, "I fortified myself with chemicals", what did you understand from that?
 
that's the way marketers communicate though
"No chemicals!" written on a box is giving you zero information
@AvnerShahar-Kashtan this, too, could really mean anything
 
10:16 AM
@Neil Could. But what do you think it means?
 
you got your calcium for today. I don't know, it was pretty vague to me
 
Because communication can't be boiled down to the bare semantic dictionary definitions. When people say "no chemicals", most people will understand it as "no added ingredients that aren't generally accepted as produce/traditionally manufactured material". Of course that statement can be interpreted in other ways, but that's language for you.
 
I get that the intended meaning is "no heavy industrial conservatives added" or something similar
 
Right. And if you get the intended meaning, than the phrase did its job, communications-wise.
 
but that's not legally binding because it's not even specifying which chemicals, and then it doesn't even suggest that the said chemicals weren't already present in some form or another
 
10:21 AM
So "no chemicals" did convey meaning.
"Legally binding" is hardly a relevant qualification in every day life.
 
Technically the absence of communication is in of itself communication
it's impossible not to communicate something
 
"Legally binding" is the bare minimum requirement in many cases.
 
the classic example is the types of puzzles where you gain information based on the fact that some people in the puzzle themselves reveal to not know certain things
but if we're not looking at it from a "everything conveys information" perspective, ultimately what facts can you say you know now that you didn't know prior to reading the text on the box of a product labeled "No chemicals!"
it's brilliant in its simplicity, because you want to trust that, but it's not even guaranteeing something
 
If I take, say, a box of dried fruit. And it says "no chemicals!". I can reasonably assume that it contains fruit, maybe sugar, but it won't contain any common preservatives like sulfur dioxide, which is often used in fruit preservation. That's knowledge directly gained from that statement.
You can make the claim that sugar, C12H22O11, is every bit a chemical as SO2 (commonly refered to as E220), and it is, but the label would probably allow for the former, not the latter.
 
and yet, it can contain sulfur dioxide just the same, because it's not legally binding
If you think that, you were misinformed or perhaps mislead
 
10:28 AM
But in most cases, it won't, because when the company writes "no chemicals", it's because they want to convey the information that it doesn't contain sulfur dioxide.
 
the irony being that you weren't given that information because that's technically not what "No chemicals!" means in that context
@AvnerShahar-Kashtan admittedly, it means an effort was put into keeping it as bio as possible, but the extent of that can be as much or as little as they desire
It'd be as if I told you that I'm giving you 0 or more gold coins today
Maybe it makes you happy, because you prospect positive results from this, but it's not promising anything
and I didn't even convey any information by telling you this
 
@Neil You're off on an entirely different track, which is "when people lie, they can use words to hide it", which is true. But I'm saying that when people don't lie, their words carry a lot of conveyed meaning, more than the bare minimum.
Going back to pragmatics 101 - if you asked me how well I did on an exam, and I said "I passed" - what grade would you assume I got? Closer to 51, the minimum passing grade, or closer to 100?
 
@AvnerShahar-Kashtan If you were telling the truth, it still is meaningless. Again, if I tell you you can trust me when I tell you I'm giving you 0 or more gold coins today, at best, I've demonstrated intent
 
Don't try to break it down to its constituent elements. Tell me what people would assume, based on that answer?
 
@AvnerShahar-Kashtan assumption in marketing is killer. It's practically based on assumption.
If you said you passed, I would assume you got a minimal passing grade, to answer your question
 
10:32 AM
You're focusing on advertising again. I'm talking about communications in general.
@Neil Exactly, even though, in the legally binding sense of "not lying", could have gotten 100 too. But communications is more than that bare minimum version.
 
@AvnerShahar-Kashtan If we're talking about communications in general, "No chemicals!" means it's something you could probably feed your baby
However, what actual facts have derived from this? Zero. You cannot say with any certainty anything from this, including whether or not it is healthy
 
So back to the original topic, when someone says "I don't want chemicals in my food because chemicals are bad", answering "Ha! water is a chemical! Turns out you do want chemicals in your food" isn't a shattering rebuttal, it's deliberately misunderstanding.
 
@AvnerShahar-Kashtan Oh I agree with this
I wasn't disagreeing on that point
 
The original claim could be wrong or right - the "chemicals" they're afraid of might be benign or might be carcinogenic. But the rebuttal? That's what I was talking about. That deliberate and disingenous rejection of information that was communicated - by pragmatical inference, by shared understanding of the world - but ignored for the sake of smug so-called "logical victory".
 
What do you want me to do?  LEAVE?  Then they'll keep being wrong!
4
 
10:37 AM
Hey, that's what I've been doing for the past 25 minutes. :)
"Someone was wrong when he thought someone was wrong on the internet"
 
meh, people go a long ways to prove they've made a logical point, even if it is no longer something they fully believe in
 
but the real question is: can you reproduce the issue in an isolated environment?
 
@Neil lmao
heres your star
 
Thank you, sir :)
welcome to today's 10k
 
That's the XKCD strip whose number has become a known term in itself. In many circles I frequent, "#386" is acknowledged without further elaboration.
 
10:43 AM
yep, I considered it a mandatory link in these situations
 
who knew all xkcds by heart?
 
well I hope you didn't misinterpret, I was enjoying a bit of banter
I don't think anyone knows them all by heart
but the ones I know are this one and 1053
 
I don't remember #1053 by heart like I do #386, but I do love the "today's 10k" concept and try to stick to it whenever I learn that someone doesn't know something I consider well-known.
 
11:19 AM
This doesn't make my life hard at all
 
sku!
 
SKU!
 
what is it supposed to mean?
this is also a gem:
if (!Valid.IsValid)
if not valid is valid
 
if (!Error.IsError)
I've seen something similar to this in the past
 
prolly by me
 
11:29 AM
@Wietlol Basically there's a class PackableSku, (often shortened to sku), which contains a SKU (type), which contains a field called Sku which is the actual sku
 
i see
 
any one know about fetch lambda queries without subqueries using take skip and where in entity framework
 
12:11 PM
@LeeButler My favorite naming clash is a previous project, where our main domain entities were named "case" and "event".
@FarazAhmed Just ask your question. If anyone can answer, they can answer directly.
 
@LeeButler death by skusku
 
 
 
2 hours later…
mr5
2:41 PM
Question for people that lived with snow, what is your ideal room temperature?
 
mr5
Our AC was set to 22C earlier and I'm freezing
I'm not sure if the AC temp is the room temperature but I can't stand it to be < 27C
Now I set it to 28C
 
I dont even have the option to set the room temperature since central heating to the whole building
 
I tend to have heating set to between 19 and 22
Jesus christ what the fuck where do you live
 
it's funny. ideal room temperature should be the same throughout the year, but it isn't
in summer, you tend to want it cooler, and vice versa in winter
 
2:50 PM
That's always my ideal temperature. Unfortunately outside varies a lot around there
But 19-22 is always the target
I wouldn't say I "live with snow", Not to brag though, but it did snow a week or two ago
However when I went to Finland in December they always had their heating set to about 20
 
@Neil There was an interesting podcast episode I listened to a while back about air conditioning and how we've gotten used to having interior temperature be 100% controlled, regardless of what's happening outside.
 
When I moved to Italy, I noticed a big difference in culture in that regard
most people here simply open up the door at night in summer to cool down
not a lot of people use air conditioning
in America, of course, everyone has air conditioning who can afford it
 
depends on the state
you probably wont buy any acs in montana or maine
 
true
I grew up in the southern united states. The humidity made it feel a lot hotter than it really is
 
Virtually nobody has AC at home in the UK
It's just not worth having at all
 
3:03 PM
well don't you need to change the air every now and again?
if it is really cold, that sort of makes that impractical
 
@mr5 18-20C
@Neil there are things called window
 
@SebastianL That program Microsoft made? Yeah yeah, I know all about that. What does this have to do with temperature?
 
mr5
@SebastianL holy fuck. I can't even withstand 22C for a couple of hours
 
it has an inbuild temperature controll feature, whenever it is loading something it heats the room and whenever you need something real quick it is cool af
 
mr5
Why does it seem the normal room temperature is too cold for me
 
@mr5 what is the average temp for your region november to february?
 
mr5
@SebastianL temperature outside?
 
History of air conditioning and its effects on the relationship between people and their environment.
 
mr5
it's around 32C I think
 
@mr5 yes
ohhh :D
here it is around -2°C
 
mr5
3:11 PM
holy fuck
I'm gonna die there instantly
 
Here it's 13°C.
Probably the coldest month.
 
Regional temperature here ranges from -5 to 35ish C
 
mr5
I need jacket/sweater
 
Feb is our coldest month where I think the worst we've had so far is about -4 a week or 2 ago
 
@LeeButler about the same as here really
 
3:12 PM
lowest here was -10
(this year)
 
though beyond 30 degrees, it is sort of unbearable without some sort of air conditioning
 
Usually though the temps are 10-20
 
@Neil yeah
but if you only have 1 month per year where it reaches barley 35C an AC isn't worth the hassle
 
Hmm, I don't agree with that sentiment. Sleeping through the night with 35° temperatures is not fun
 
@Neil Ceiling fans can take care of most of that, though.
 
3:18 PM
true, but you have to have ceiling fans :P
 
A lot cheaper to install.
 
How do I invert this query to return all the types that 'don't implement that interface

types.Where(x => (typeof(IPostProcessor)).IsAssignableFrom(x));
basically want something like IsNotAssignableFrom
 
!
 
@erotavlas Just add ! before the condition.
Also, I would probably extract the typeof() call to a local variable, though I'm pretty sure it would be pretty well optimized on its own.
 
omg thanks
 
3:26 PM
You can make the code a bit more concise this way, though it's not a big deal:
var interface = typeof(IPostProcessor);
var implemetors = types.Where(interface.IsAssignableFrom);
Anyway, the hour grows late and I must away.
 
mr5
@erotavlas types.Where(x => !(typeof(IPostProcessor)).IsAssignableFrom(x));?
 
4:19 PM
What is love, baby don't hurt me. Don't hurt me. What is love?
 
4:55 PM
isnt IsAssignableFrom the same as x is IPostProcessor ?
 
x is type
not an instance
 
oh yea, that was the difference
ty
 
5:15 PM
Eugh I hate slow network transfers
Why does transferring 200GB have to take so damn long
So what happens here in the evenings?
 
5:35 PM
The world collapses into nothingness.
 
@Greg Worse, the Europeans show up. ;)
User and mr5 insist on coming on here at 5 PM and wishing a good morning. :P
 
Well, I am Pacific Northwest. I am on the tale end of the world.
 
> tale end
I always thought PNW was made up.
Reading the transcript about ambient temperatures makes me laugh.
 
Mike, you ever thought about standup?
 
I grew up in the Caribbean, moved to Boston. You can adapt to anything.
@Sinjai every morning
 
5:42 PM
Wow
WOW
 
9:30-9:45
 
@MikeTheLiar You mentioned you almost worked for a water quality facility, if I built a velocity and level sensor would you be interested in helping me calibrate to calculate flow?
 
I never worked there
I applied there
 
 
I know, but you applied.
 
5:43 PM
Like, 7 years ago.
 
Fair enough, thought you would be intrigued since you applied there.
 
Yes. I was interested in participating the part of capitalistic economies where you exchange services for money.
 
But I'm european, and so are most of the morning crowd
I'm only here because I'm still in work doing some server switcheroo
 
Not sure how to respond that Mike.
 
Server Switcheroo: Electric Boogaloo
@Greg I take that as "I cared more about the money than the water filtration".
 
5:49 PM
Upgrades and implementing failover and shitr
 
@Greg Ever seen a tree octopus?
 
No, have you?
 
I lied, yes I have seen that. But it was in an aquarium, since it cannot live outside of water.
 
Are you sure it was a tree octopus, then?
 
5:54 PM
@Sinjai is this related to tree lobsters?
 
Considering that is a hoax, I am pretty positive since the octopus being used is callistoctopus macropus octopus.
 
What the fuck
 
Which is also not native to the northwest, the current that comes down our coast from Alaska is too cold for them to survive in the wild. They prefer moderate to warm waters.
Thus the reason I saw that species in an aquarium.
 

« first day (3042 days earlier)      last day (1907 days later) »