« first day (2893 days earlier)      last day (2054 days later) » 

12:39 AM
hmm.. @alex are you looking for installer?
 
 
1 hour later…
1:48 AM
Hey guys, I'm having trouble understanding Constructor Injection! Consider we have an interface that has the declaration of a method, and there are two classes that implement this method. Using constructor injection, how does the interface know which implementation of the method (in which sub-class) is being called? :/
 
as I learned, Interface is a blueprint which makes classes must have interface's items.
in my knowledge, it cannot be known. but if you can define class, you can use GetType() for that
 
I think I mean in dependency injection, when we are injecting an interface into the constructor of the class, and we call a function in it, how does it know where the implementation of that function is?
I asked this question and people started downvoting me without answering the question
 
haha... I know how you feel when ppl downvoting question and answers.
it's really strange that a ppl who starts vote, other ppl follows that without their opinion.
do you have a sample code?
I'll give my hand to solve your question.
 
mr5
2:07 AM
o/
@Masood usually, there is a container where you register each implementation and the DI lookup into it
@KendallFrey he's really an intelligent guy ^^
 
lmao wut
he's a crackpot convicted criminal conspiracy theorist
 
mr5
really?
what's crackpot?
 
> an eccentric or foolish person.
 
mr5
but that still does not invalidate his theories on creationism
 
Well no, they're invalid in their own
 
mr5
2:15 AM
what is his crime? how did he became a criminal?
 
tax fraud
not entirely sure what exactly it was, but some sort of tax evasion I think
 
mr5
what makes you think his claims are invalid?
he bases his theories with scientific facts and references to science books along with the bible
 
He consistently misrepresents science in an attempt to mislead his audience
 
uh...
Starving...
I need to eat something.. cuz it's lunch time here.
 
mr5
and why not go out and find food
 
2:20 AM
yes I need to do it :)
 
mr5
@KendallFrey can you quote something he say that misrepresents the science?
 
The very first thing he mentions, about nobody having seen dinosaurs, is false according to cladistics.
Birds are a type of dinosaur, and plenty of people have seen birds
 
mr5
Maybe he is sticking with his theories that the evolution is a hoax
 
Well, that's usually where he misrepresents science
He really really really doesn't know what he's talking about when it comes to evolution. Or he lies.
oh, 6:30 in and we're getting to "kinds"
Creationists insist there are distinct categories of unrelated animals, even though they can never demonstrate this.
DNA analysis shows that all animals are related in a single family tree
Oh, now he's explaining the big bang wrong
 
mr5
2:40 AM
How about the Noah's Ark?
Do you find any flaw in his explanation?
 
The whole story doesn't work because there was no global flood 4400 years ago
 
mr5
There are lots of legends find on different regions of the world that tells there is
 
In theory you could have a boat with a bunch of animals in it, but I can't see it working with a wooden boat that big, with that many animals, for such a long time.
 
mr5
Well, he says all the animals in the boat are all babies
Or the little of their kind
 
That doesn't really help very much
 
mr5
2:44 AM
It's possible though
 
creationists tend to propose about 7000 animals, which is way too much for 8 people to take care of
Especially if it needs to be isolated in the boat for a year and a half
 
mr5
Did they say a year and half?
 
That's the story
 
mr5
Maybe we have different time measurement back then
Oh, and it says that something happened on the earth after the flood. Human lifespan becomes shorter, which makes the whole story consistent
 
How does that affect the consistency of it?
 
mr5
2:49 AM
Because old people mentioned in the bible lived for hundred of years
 
I'm willing to say that the story is consistent, in the same way that Harry Potter is consistent. Maybe, but it didn't actually happen on this planet.
 
mr5
Err, there are some physical evidences that it actually happened
 
Really? Do tell.
 
mr5
oh wait.
 
 
1 hour later…
4:01 AM
amazing fried rice with icecream
yummy :P
 
So I found myself writing an algorithm for (a&&(b||c)) kind of expressions again. I have to wonder if there's a common way people do it, or if it's not common enough. Well in my personal applications I've done it three times now if you include this one, so I have the solution ready. Just curious if anyone knows a generic library or something that does it... nothing heavy-handed, though
 
4:21 AM
 
4:37 AM
@mr5 Good chance scanning the net for scholarly articles on sediment deposition about 4400 years ago (via radiocarbon dating) would yield little evidence to support the flood. I'd expect a clear disturbance in sedimentary deposition. I wonder where the water from that flood would go as well; sea levels vary as much as only 500 feet or so according to sediment studies.
 
mr5
I'm no expert on the subject. I'm just trying to balance out the possibility that there's a chance it existed
 
5:30 AM
I'm just repeating common skepticisms. I'd have to read the passage anyway for enough details to really probe its plausibility.
 
5:46 AM
Nevermind my last question. My parsing methods do differ; the math parser has the luxury of immediately solving innermost expressions, so it injects the results in the original string and repeats until it solves everything. But my search query parser instead breaks the original string into a list of substrings and tokens in order, isolating expressions from && and ||, [ and ] in steps until there are no strings, then combines everything into a nested filter object. So, it differs.
 
6:15 AM
@person27 You wouldn't really need an algorithm to write such an expression per se
everything can be written to a series of conditions separated by &&'s
that tends to be the general preference because it's easier to simply validate the trueness of each indivdiual condition
 
Goooood moorniiiing CeeeShaaarp! Have you eaten any previously unknown food this weekend? Please provide a recipe if you can!
 
o-ha-you
 
I ate fried balls of eggplant this weekned
You'll have to ask my wife for the recipe, but they were quite tasty I'll admit
 
mr5
@Neil I thought you ate egg balls of elephant lol
 
I imagine that would be a huge helping
 
6:33 AM
So I guess...make balls of eggplant and fry them?

I'm never sure when people say "fry"...do you mean deep-fried, like french fries? Or like...roasting in a pan? Or in a pan with really much oil?
 
deep fried in this case
We don't usually fry things, but when we do, we try to stay somewhat healthy with the actual thing we're eating and we always deep fry
I think maybe an egg was added?
Hard to say, but I think the eggplant was cooked first
 
morning!
 
\o
 
mr5
@Neil a ball shaped eggplant?
like that?
^ we do have this variety
but not the clear white one
but it's tough to eat
 
No, I mean cooked down, egg added, and formed into a ball with some bread crumbs
@mr5 Does it not grow out?
 
mr5
6:44 AM
it stays like that
 
My mom never prepared eggplant
the only times I got it, it was because someone was fixing eggplant parmesean
and oh man, I loved that stuff
 
mr5
or this one, tortang talong as we called it
but it's not shaped into ball
but it has eggs on it
and taste yummy
 
@mr5 proxy blocks most images, but I got this one at least :)
 
mr5
vpn it!
I highly recommend you view that image
 
@Neil vpn it, it does look really tasty
 
6:51 AM
I'd get fired for using a vpn
I don't think it's worth it to that extent
 
mr5
use your phone
 
Looking for help with ms build stackoverflow.com/questions/52358911/…
 
What does your project/solution generally look like (project type?), what exactly should your build (is that bin/debug|release?) look like?
 
Tested it with solution and project files . In debug and release
 
7:07 AM
That...kinda answered none of my questions. Lemme make a list.
1) How many projects in solution?
2) What's the (shortened for privacy reason if you'd like) path of your "build" folder?
3) What project type (see project->properties) is your project?
4) What do you expect to see inside your output folder? (e.g. "1 exe, a bunch of DLLs, some 'en-UK'-like localization folders")
5) What does your output folder actually look like?
@alex
 
mr5
@alex come back here!
squirrelkiller is not finish with you yet
 
@alex if you want answers, you have to expect me to ask questions you don't like
 
7:26 AM
uh... I have a simple question.
FileDialog FDialog = new OpenFileDialog();
FDialog.Filter = TypeFinder.extFormat;

FDialog.ShowDialog();
I use this code
but when I push cancel button,
it throws exception
if ( FDialog.FileName != null )
            {
                FileInfo fi = new FileInfo( FDialog.FileName );

                try
                {
                    if ( fi.Exists )
                    {
                        SearchKeyword( fi.FullName );
                    }
                }
                catch { }
            }
because FileInfo's Location is not valid
on try area
 
!!format
 
Idk why when I push Cancel, it's FileName value is not null.
 
Format your code - hit Ctrl+K before sending and see the faq
 
thanks for Ctrl+K
 
Thank Talos for Ctrl+K
 
7:32 AM
Hello.
 
ã…‡/
 
Hallo.
 
mr5
!!o/
 
mr5
!!\o
 
7:35 AM
@mr5 That didn't make much sense. Maybe you meant: no
 
god damn...
Solved my previous question.
it returns String.Empty
lol..
 
You see, there is almost always a perfectly logical explanation for such problems
and it usually in its crushing humility, reminds us of how idiotic we all are :P
 
Mornin all
 
Morning ROel & Bugfinder o/
LPT: Always use string.IsNullOrWhitespace
Write an extension method if you wanna be fancy
 
7:51 AM
Ah. That's better.
 
What are your thoughts on writing a IsDefault<T>() which checks for null/0 ? Seems like a nice idea but on second thought not too useful and maybe messy but maybe not cuz I can't really get an overview and argue reasonably right now for osme reason.
public static bool IsDefault<T>(this T value)
{
  return value == default(value);
}
 
what would be the value?
 
Would the compiler even let me do that?
someString.IsDefault()
someInt.IsDefault()
someObject.ISDefault()
instead of == null and == 0
 
I get the syntax, but what is the value :)
 
7:56 AM
yo
@Default Not sure, not having ==null everywhere I guess.
It binds more nicely to the variable name
 
@Squirrelkiller It's not hard to understand == null IMO, so feels a bit redundant
 
nicelyer?
doesnt sound right
 
With C# 7.2 (or 7.1?) you can just do if (value == default). You don't even have to specify the type.
 
Hey relax there we're not even done upgrading our build server to c# 6 yet
 
hmm...
 
7:58 AM
meeting, bbl
 
So just if (myInt == default(int)), then.
 
@AvnerShahar-Kashtan it's 7.1 I tried it now hehe..
what an amazing code world is!
didn't expected default will work as like that.
 
It's a bit more streamlined than default(T) you had to do before.
 
i find default to be rather dangerous... in most cases, 0 means something
if you have a value that is potentially not present, why not use T? ?
 
Because sometimes you want a '0' show up as nothing instead of having zeros everywhere
If I'm not paying any interest on my loan, I don't want lots of rows showing me that I payed 0€ for 0€ that month
 
8:12 AM
you want the month to just not show up?
 
Yes
brb toilet, then I'll make a screenshot for you of the report I'm currently working on. It's really annoying to have zeros where there is just nothing.
 
i think both options should be allowed
if you have a lot of 0s, you should be better off with hiding the ones that are 0
but if you have very few of them, having a consistent number of months being shown is probably much better
especially if your view supports multiple years
 
1) How many projects in solution? about 3 projects .
2) What's the (shortened for privacy reason if you'd like) path of your "build" folder? sorry didnt understand the question . f:\build ?
3) What project type (see project->properties) is your project? will check let you know .
4) What do you expect to see inside your output folder? (e.g. "1 exe, a bunch of DLLs, some 'en-UK'-like localization folders") in the build folder i expect an ZIP file .
5) What does your output folder actually look like? zip file with an site in it .
@Squirrelkiller hope it answer some
 
I was like "oh how nice, people asking questions and answering their own question in chat :)"
 
lol
 
8:17 AM
@Wietlol we also have a report generally showing 12 columns, one for each month. Each comin column has 6 values in it. If all the zero values are displayed, that report looks really annoying. With zeros hidden, it's not that annoying.
 
oh, you can indeed just not show the numbers, find middle ground
on a side note
    // todo remove this heresy
    // todo - ok, we can't
(actual code comments)
 
ANyone know how to make msbuild output a zip file at all? I thought you always get all the needed executables, libraries and resources thrown into the specified directory.
 
Anyone know how to make msbuild not output a zip file at all? Ours makes a zip file each time with the folder structure of the C drive... where we have to click 40 times to get to our file.
 
@Wietlol It's not standard behavior, so I'm guessing someone added it to your build definition explicitly.
 
8:31 AM
What project type?
 
Good day guys
Is it okay to like left join about 30+ tables?
 
G'day json
 
Good day sir @Squirrelkiller
 
it only happens on publish though... not sure if that is its default behavior
normal builds are just exe/dll
 
Is there a "phonetic" way to pronounce your name, or do you have to say Gee-Pee-Pee-Dee?
 
8:33 AM
@jsonGPPD if left join is what you need, left join is a good solution
 
Haha yes sir it can be like that @Squirrelkiller
 
Jay-Es-Oh-En-Gee-Pee-Pee-Dee
 
I'm facing an issue with left joining a lot of tables
 
@Wietlol Depending on project type, "publish" can be any number of different things.
 
good to know...
i think
 
8:34 AM
Can people stop ignoring my question about their project type please? I'm here thinking "how hte fuck do you get a wpf/winforms/library project to make a zip?"
 
@Squirrelkiller Simplest way: add a post-build event.
 
the error says 'The process is terminating with StackOverflow Exception'
 
I hate post build events
 
Less simple: edit your .csproj or link to an external .targets file.
 
Is SQL turing copmlete? Can you kill it with recursion?
 
8:36 AM
what do you mean sir?
 
This is a 3rd-party project with a lot of MSBuild tasks you can use.
 
Stackoverflow exception usually means infinite loop, because usually modern PCs have too much memory for SO exception
 
@Squirrelkiller I'm guessing the issue here is with Entity Framework generating bad code which throws the SO. I've seen it happen.
 
what if you have turing completeness without having recursion kill it?
 
Oh I understand sir. I wonder what causes it. I'm using EF Core and to achieve the Left Join, I'm using Include which works with my models.
I have like 30+ models and about 16 models causes the problem
let me count it all first
 
8:39 AM
over-designed?
 
I have like 90+ models
and I commented out about 16 below the code, and it works fine.
So, around 70-80 models are working without those 16.
 
@RoelvanUden senpai, i got a question? have you worked with react native? I know you have xamarina experience for developing mobile apps, but can you give a personal opinion if you worked with both of them?
 
But when I include those 16 (estimated) then Stackoverflow exception appears.
 
@Proxy I used Cordova and Xamarin, but not React Native.
 
I don't know how to fix em. :(
 
8:42 AM
@jsonGPPD You do realize that, from the outside, a join between 90 models seems insane. Are you sure there isn't a better way to write this query?
 
I'm not totally sir. My code is kind alike this ...Where(x=>x.Main).Include(x=>x.Sub1).Include(x=>x.Sub2)...(x=>x.90)
Should I split them sir?
 
includes can be done automatically though... i think
 
I can't tell you, because I don't know your data model and I don't know your requirements, but it seems excessive, and the sort of edge case that EF can choke on.
 
i would go for always include everything except when you have performance issues
 
@RoelvanUden ah i see. Comparing those two (cordova and xamarin), what is your opinion on them? I only written a small app in cordova but never worked in xamarin
 
8:45 AM
but include is not a join afaik
 
Ugh, my left index finger has been bandaged for the last week or so and the rest of my fingers are aching from stretching to type letters they're not used to type.
 
It's all One-to-one only sir @AvnerShahar-Kashtan except for one one-to-many
so, estimated, like 90+ one-to-one models
 
Does EF Core let you inspect the query before it's sent, like EF6? Try looking at the generated SQL.
It might give you a hint as to what goes wrong. Sometimes EF constructs queries badly, but slight tweaking can help.
 
@Proxy Depends on how you work with them. Cordova is much easier to start with if you know web development with SPAs and don't need a whole lot of native functionality. Xamarin using the traditional forms-approach takes much more time to get used to, but it's quite nice. You can also make a hybrid, where you load a web front-end in a browser in Xamarin (just like Cordova), so you get C# for native functionality and web for UI. But that takes a bit of time to begin with.
 
I've checked using the dotnet watch run and the logs appear there sir @AvnerShahar-Kashtan and the log generated a lots of Left Join
 
8:48 AM
The turing completeness and recursion where different questions actually, wasnt sure about turing completeness. Still not sure.
 
how do you have 90+ one-to-one models?
I am the one that overdesigns things, not you!
give me my models back!
 
I'm working with IS now (Information System) sir
and it has a lot of data entries like bloody
 
> Islamic State
 
mr5
Working on Xamarin even on the latest version is still buggy. I wouldn't recommend it for newbies like me
 
bloody?
 
8:52 AM
Yes sir. Imagine like there's a main detail, with sub, and sub and sub and sub ... at lot of sub details
 
why is each detail in its own table?
 
I was always kinda fraid of what would happen if I used EF on larger projects.
This is the answer of what happens.
 
@RoelvanUden i see. I am working on a small project with a friend so we were kind of discussing what we should use for our mobile apps. I have some experience with react-native but maybe we will consider fluuter or eventually xamarin.
 
@Squirrelkiller oh no, this is nothing
 
Because some sub detail consists of many properties
 
8:52 AM
🎺🎺🎺🎺 Mornging all 🎺🎺🎺🎺
 
I have had a project where requesting one entity from the database took 30 seconds
 
Hey, Lee
 
it requested several thousand records and did hundreds of queries
1+n problem
 
@Wietlol Why the hell would you do that
Build a fucking sp?
 
EF did it, not me
 
8:53 AM
and having it on one single class or model could be pain to maintain right?
 
sp?
@jsonGPPD not necessarily
 
That sounds like you didn't do it very well
 
stored procedure
 
a one to one relation exists for very rare purposes
 
Lazy loading is bae <3
 
8:54 AM
wassup coders!
o/
\o
\o/
 
Let sql server or whatever rdbms do the work alone
~o~
 
either you have a set of tables that each have their record in another one to reuse the other table's structure
 
@jsonGPPD It depends. Having a megatable can be a bad thing. But sometimes it makes sense
 
or you have it to link between tables of other databases/schemas
 
Haha wassup squir out there hahaha
 
8:55 AM
but I think you do neither of that
 
As long as it's all used. Here we have a table with 130ish columns, but only about 30-40 of them are used now
 
i think you did it to separate everything to its own table
 
Hey @mr5 I'm using Xamarin
 
@Lee why not delete other tables?
 
which is not always bad, but doing it for the purpose of maintainability is probably not giving you a much better database
 
8:56 AM
You mean columns?
 
oh, columns. Misread. Also, yes.
 
@LeeButler imagine that table to be 130 tables instead
 
But I would suggest, if you have experience in web development, you can have like PWA or (Progressive Web Apps)
 
each with 2 columns
 
@RoelvanUden does React.js has already PWA template?
 
8:57 AM
That made no sense whatsoever.
 
In which case, I would love to, but due to the way some fucking idiot created the code which pulls the data from the database (me), the column index must remain until that bit of code gets rewritten so it doesn't depend on the columns position in the results
 
Yes sir @LeeButler you are correct
 
And of course it relies on SELECT * FROM <table>... so if a column disappears something will go wrong
 
FFS Lee
 

« first day (2893 days earlier)      last day (2054 days later) »