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

9:00 AM
lol
 
@jsonGPPD If I understand you correctly, you have an entity that's spread over 90+ tables, with 1:1 relations. So now, when you want to retrieve that one entity, you need t JOIN all those tables together.
 
Yes sir @AvnerShahar-Kashtan But using EF Core, I'm able to just use .Include(x=>x.SomeEntity) instead of manually creating Inner Join and Left Join. In the debug log, it appears that EF Core automatically make it as Inner Join and Left Join
Yes sir, basically, I want to retrieve those and send it to an JSON array
 
@LeeButler why would it break?
 
mr5
@mark333...333...333 you copycat. that's my signature wave
 
SELECT * FROM [table]
...
result["Id"]
result["Name"]
result["Shit"]
 
9:05 AM
Because if I remove a column, then all of the column indexes will be out of whack.
 
hahah @mr5 then I'll use @Squirrelkiller signature wave haha ~o~
 
but why do the column indexes matter?
also... with every passing moment, I miss protobuf more and more
 
Because the function didn't return a column names
 
why does the function return columns?
what half-arsed-library do you use?
 
@Wietlol Because they have stuff like
someVar = currentRow.Cells[3].Value;
probalby
 
9:06 AM
I wrote my own thing which uses the Mysql.Data libs
 
We had that too. Probably still have somewhere. I'm scared of running into it again.
 
I was lazy so I made a super easy SelectData(string Query) function which returns an arraylist of arraylists
 
Why not List though
I hear arraylists are obsolete
!!googleme arraylist obsolete
 
Because this was 3 years ago when I was less stupid than I am now
 
9:08 AM
using (var connection = new SqlConnection("connectionstring"))
{
    connection.Open();
    using (var command = new SqlCommand("SELECT * FROM [Table]", connection))
    {
        using (SqlDataReader reader = command.ExecuteReader())
        {
            return reader["Name"];
        }
    }
}
this is what we use if not EF
 
That entire method is not obselete, and we recommend another one which returns a list of dictionaries, so we can reference columns by name instead
 
@LeeButler you mean "more stupid than I am now"?
 
Wait shit yes
 
@LeeButler we do that too, but this is what I just wrote
to show you the find by name approach
I wonder where I had my dictionary one
 
@Lee Do you also mean "is now obsolete"?
 
9:11 AM
Fucking hell yes
Here it is for comedy purposes
 
ew vb
> Return ex.Message
 
Our core still is vb
 
ew swallow
with a null object
you werent kidding when you said you were more less stupid than you am now
wait... do you still return these null objects on exceptions?
 
Try again
 
pls say no
 
9:14 AM
They never did return null objects
Just strings if something failed
It always returns an arraylist or a string
 
@LeeButler null object is not null
also EW!!! returning different types
 
@Squirrelkiller I bet you feel dirty now
 
your string is a null object
except that it doesnt do what null object is supposed to do
 
Well I wouldn't want a null object that has the same interface
 
9:17 AM
also... ex.Message EEEEEK!!!
you are hiding important stuff
 
If the function fails then the data that returns is going to be shit, why would I want it to pretend to work
OH MY GOD I KNOW
 
If the function fails, I expect an exception
I dont expect it to return anything
 
It's fine, you get the exception when it fails to cast to an arraylist
lol
 
oh yes, that will include the actual error message
;)
 
More often than not the actual exception bubbles up anyway
 
9:20 AM
> On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. -Charles Babbage
 
Unless it's a badly written query, but the queries are usually tested before putting them in the application
 
> public void SelectData(string query)
nice try
 
uhhh Telerik did it
 
@LeeButler what about a network error?
errors that dont happen often are the ones you have to log very detailed
not "Cannot cast System.String to System.Collections.ArrayList"
 
sir @AvnerShahar-Kashtan I'm just wondering, does left join or inner join has a limit of tables to query?
 
9:22 AM
If there's a network error, an sql select failing to return is not a major issue
 
@jsonGPPD inner joins will limit records based on the existence of the record in the joined table
 
that will be the only issue though
 
left joins won't
 
if your connection to the database cant be established, your select queries wont work...
@Neil that is exactly what he asked
 
@Wietlol Then I answered exactly
 
9:24 AM
If my connection to the database can't be established, there is much bigger problems
Because either that PC is hvaing network issues, or the server is having issues, which means everyone will be having issues
Yes I know it's a terrible way of thinking, but it was fine at the tinme
 
@Neil I see your skill of recognizing sarcasm has improved
 
@Wietlol sarcasm_skill++;
That puts me at 1 now! yay!
 
sarcasm_skill#;
 
Oh sir @Neil you can there's no number of limits on that?
 
ew snake case
 
9:26 AM
AssertThat( C++ < C )
 
@jsonGPPD Limits on the number of joins you mean?
 
'scuse me?
 
Yes sir @Neil because I'm not sure if there's limit in using left or inner join
 
You can write c and use it in a .cpp, but you cant write cpp and use it in a .c
 
@Squirrelkiller I see you dont understand
 
9:28 AM
@jsonGPPD How many joins are we talking about?
 
But lots of that!
 
@Squirrelkiller try that
 
I think you'd hit the upper limit on query size before you'd reach a limit in the amount of joins you could use
 
joins.Count == tables.Count-1
 
I have like about 90+ left joins while fetching the queries using EF Core sir @Neil
 
9:29 AM
also... dotnetfiddle doesnt support C#7 :(
 
whoa, that's a lot of joins!
@jsonGPPD Have you considered using views?
 
Yes sir but the majority is one-to-one only. What is it sir?
 
*slaps EF Core*
This thing can fit so many joins in it.
 
Haha @Squirrelkiller like this slaP? haha
 
Aw I thought my like 12 joins was excessive
wtf
 
9:33 AM
@LeeButler he has your 130 columns in 130 tables and tries to select all of em
(as a rough comparison)
 
Oh yeah I forgot
HMB
This one isn't that bad for joins, it's just long
 
@jsonGPPD You could have a view containing all the information required from all 90+ joins
wait, is there like a type thing going on? If type = 'A' then get information from table A?
 
This is another one which is the only one I can think of right now which has mad joins
 
You could create a view from a union of these tables
you obviously require the same data from all of them
or you wouldn't have so many joins
 
mr5
@LeeButler did you just store the dates as string?
 
9:41 AM
Probably
 
42 mins ago, by Squirrelkiller
FFS Lee
 
In fairness, I didn't make the table that was referencing. And we no longer use it anyway
 
mr5
@LeeButler it's very complicated dude
you should break those down a little bit
 
Tbh that first query was never really used because the results didn't line up with reality anyway
 
lol
Lemme just build this extra query. We're probably never gonna use it but now we have the data here.
 
9:45 AM
results never line up with reality
 
Nah more complicated is the second one, which has to be run after 2 others, and then a whole bunch of client side magic to stick it all together because the data source (which isn't us this time) is tragic at database design
 
but it often takes us years to figure that out
last tuesday, we had an online lesson about database stuff and designs
 
I mean, they have this in one of their job postings
> Microsoft SQL Server is our database and we fanatical about NOT using Entity Framework. Our business logic data adapters are optimized for speed and performance
 
at one moment, the teacher mentioned BSN (Burger Service Nummer or Citizen Service Number) which is the "ID" of a dutch person
 
Which doesnt really say anything about the db design itself
 
9:47 AM
then he said it was a good Primary Key
then I got TRIGGEREEEED
 
Yeah but we "acquired" the database login details and it really is bad
 
there is a hell of a lot of stuff to learn about databases
 
Well shouldnt it be a...CUID (Country-Unique-ID)?
 
because there have been cases where multiple people used the same BSN
and there have been cases where people change the BSN
 
In the netherlands, People are burgers?
 
9:48 AM
and there are people that dont have a BSN
@LeeButler translation
 
In soviet russia, burgers eat you!
 
how would people have the same number?
 
That's fuckin weird
 
@BugFinder a human bug
 
9:50 AM
Some countries have to recycle their NI equivalent numbers
 
Bürger (ger) = citizen
 
i guess but surely not of LIVE people?
 
Because people get new ones every so often for some reason
 
What the hell state?
First give your citizens an ID so you can use that to identify them, then just change it? Why?
 
also, people's birthday can change
 
9:52 AM
huh?
 
They have an identifier code for everyone in italy and it's composed based on information of the person, including name, last name, birthdate
 
Wait what
 
etc.
 
I have to disagree on birthdays changing
 
That said, I'm sure there duplicates just the same
 
9:53 AM
@LeeButler you sure?
 
Yes
 
@LeeButler Lol I would agree with you, but nothing surprises me any longer
 
Unless your country has developed a time machine and hasn't told anyone
 
one's birthday might be unknown
and they estimate it
and later, they might have more information and have a better estimation or a confirmation of a specific date
 
How do you have an unknown DOB?
 
9:55 AM
 
Do other countries not have birth registers?
 
@LeeButler if you dont know it
I know someone who doesnt know his birthday
 
i can imagine in countries were literacy is low and so on that babys are had, at home and no records kept
 
I'm sure that could happen in developed countries easily too
 
I suppose so
 
9:56 AM
You'd just need some mountain hicks
 
im sure it can but higher chance in low literacy/hick type areas
 
Yeah but here for example, if you have a kid, you should 100% get it registered. Not having a birth certificate makes future life really hard
 
here it would for sure, but i doubt in remote african villages and one gives a crap about registeering
 
Not having a birth certificate making future life really hard comes from the expectation that everyone has one :P
Also maybe it would be difficult to prove you don't have one
 
If you don't have one here, you'll be told to get one or piss off basically
I had to get a new one when my dad died to prove that this bloke which I'd been living with for 21 years was in fact my dad for the insurance people
 
10:00 AM
the same with postal codes and names
everyone gets them wrong
 
these people just waltzing into people's lives and living with them for years pff
 
if you can avoid storing them, avoid it
 
It was cool though, I went to the town hall and was like "Certificate me up pls" and they were like "Give details and money and about 10 minutes" and then it was good
 
they even convince people they are their fathers
@LeeButler oh, well that isn't so terrible afterall
my father had a joint account with my grandmother, and she passed away. My dad then closed the account and that was that, or so he thought
6 months later, he receives a late notice for not paying off the account
He called them up and told them that he had closed the account, and they said they wanted the written approval of my grandmother
He told them she was dead and that there would be no written approval but if they wanted, he could give them the death certificate..
They said no, that wasn't necessary and apologized for the inconvenience
Same thing then happened another 6 months
 
:)
 
10:03 AM
Went on for a while..
 
lots of companies do that
a friends partner died, a year later virgin wrote to the deceased saying please come back..
 
well I get that maybe they were uninformed
 
no no, in virgins case they had definately been told
 
But after you tell them, that really should be sufficient..
oh, geez..
 
i had the same with my dads milkman
i had no idea who he got milk through so i left a note
they wrote back saying "do it online"
at which point i lost my rag and wrote "I cant hes dead, and he had the details"
 
10:06 AM
"Come back.. we've got great music.. have you listened to 'God's Plan' by Drake yet!?"
 
highway to hell is on special offer :P
 
stairway to heaven
I honestly think the digital world really doesn't have a smart solution to this..
 
problem is I guess is it depends a little on the system they have if you ring up and say they died, and all they get is "close account" ... no "dont bother, dead" .. chances are they will write to you
 
there are plenty of facebook pages of dead people
 
my Dads has been "memoralized" ..
 
10:08 AM
How'd you manage to do that without logging into his account?
 
fb have a notify us of death option
 
oh well at least there's that
 
and depending on what settings you have, your account is either deleted or memoralized
 
Though now that makes me wonder if you can claim anyone is dead..
 
yes, yes you can
id like to think they do a bit of checking
 
10:10 AM
i'd hope so
But something tells me if you notified about the death of a celebrity, then immediately modified their wikipedia page..
 
there are options to upload pictures of certs etc, but for my dad i just wrote, died, date, done
 
Maybe they'd cross-reference each other and he'd be considered dead
 
they would probably look for a news article
 
I'm sure so many people are notified to be dead that that makes that sort of thing virtually impossible
facebook is the authority in a lot of ways. When they're told soneone is dead, who do they turn to to determine the truth in that?
They must have a department dedicated to it?
still seems like that would be horribly cumbersome to do
 
Id like to think its pretty automated
 
10:14 AM
maybe they leave it to an artificial intelligence to deal with, except when the AI has too low a certainty percentage to be safely automatically dealt with
 
mr5
o/
can a BadRequest (400) return a data?
I mean, does it comply with the specs?
if it returned any data
 
Why not read the spec
 
400 returns data
 
@mr5 I don't see why not
 
mr5
> The HyperText Transfer Protocol (HTTP) 400 Bad Request response status code indicates that the server could not understand the request due to invalid syntax.

The client should not repeat this request without modification.
 
10:17 AM
often the data is the reason why a 400 is returned
 
mr5
@ABuckau it doesn't say anything which I am asking
 
It doesn't say you can't..so you can.
 
mr5
so if it doesn't say so, I can do whatever I want
 
I could see why it might be useful to provide information relative to the error
 
You can always do what you want.
Might not be supported by all browsers..
 
10:19 AM
generally if it's your backend and your frontend, you simply don't make bad requests
 
Good thing about being a programmer: You can basically just do what you want as long as it works.
 
mr5
we have had an argument that, if it's not 200, the client side will not expect any data returned by the backend
 
But if it's just your backend, you can make it return useful information to whomever might be calling it
 
mr5
@ABuckau so the reason why I am asking
 
You can also make it return 418 with information
When in doubt, 418
 
10:21 AM
@jsonGPPD It's not the SQL engine that limits the # of tables. It's likely EF's code that blows the stack when constructing the query.
 
mr5
@Squirrelkiller wth is that
 
I'm a teapot
 
418 -- data: { "description": "short and stout" }
 
mr5
what does it mean?
 
@mr5 seems possible. Browser makers can do whatever tf they want, so, would haveto test if it's not explicitly stated.
 
10:21 AM
nothing.. it's a joke response
It's not used in serious contexts
 
@Squirrelkiller did you resolve your zip file thing
 
Nope. And it was actually the problem of @alex, I just tried asking the right questions...and also wondered how to even output a zip file with msbuild.
I also still haven't gotten any answers to my "What project type is it?" questions.
 
mr5
if you are following a particular spec and then you decided to do whatever you want because it doesn't stated so, consider your code one of those legacy everyone hates
 
ah, Id put in the post build thing to run a command line zip
 
You could conceivably return 999 instead of 400
Ultimately it's all a convention, just that it is usually useful to follow that convention
 
10:27 AM
Well Wietlol chimed in with "How do even NOT get a zip as output?" so I wondereed if thre is some kinda hidden build flag or modifier to make msbuild output a zip directly
 
mr5
Sounds hackish but I would stick on the spec.
I know you could literally disregard the validation but you're making your code non-compliant.
Or you're just one of those hipster dude that sticks into writing legacy code because it's cool to make your code unmaintainable
 
Although thinking about it now, @Wietlol probably has a postbuild event running a zipper telling it to zip including absolute paths, since he said the output zip always has the full out put file.
 
i have no clue
I dont want to live on this planet any more
 
Hi, does anyone here know why im getting "Could not find content root folder!" when doing an update-database command in the package manager console
seacher quite a bit already for this issue
 
10:32 AM
Don't you just love error messages like that? If they had been just slightly more explicit like "Could not find file X in folder Y presumed to be content root folder!" then it would be far more helpful
Heck, one could solve it without even looking on stack exchange
 
so true
anyway imma post a question about it
 
@Anubis77 I can't help you, sorry
I've never received that particular error message before :)
 
You definitely want to provide more detail than that if you do post a question
 
@Neil welcome to .NET
 
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
10:48 AM
...morning? Did you make a surprise trip to the USA? Do they even let you in?
 
They do, cuz my dad is born in US&A
 
I think you're the neglecterino this time. What time do you call this?!?!
 
Time to slack off at work!
 
It's barely morning
And that's here time
 
Oviously fake!
It's 12:49!
Silly Lee, thinking noone would notice.
 
10:50 AM
That's even worse
 
Can confirm, is 12:50
Just 1 lunch and 2 1/2 hours to go
 
Ha! squirrels unite
 
Yeah but I'm from THA QUEENS COUNTREH
 
Pf snobs
Except for the actual Queen, she's cool
 
ya
Although I like Queen.
 
10:54 AM
Have they no shame?
I'd be embarassed to publish that
 
mr5
@Squirrelintraining it's 6:55 which planet are you from?
 
@Neil does smell a bit of bs
 
> physicists sent a pulse of laser light through cesium vapor so quickly that it left the chamber before it had even finished entering.
You don't have to be fast to do that. I can put my arm through a pipe and it can leave before it finishes entering. I just need a pipe shorter than my arm
 
> “This effect cannot be used to send information back in time,”
no shit
 
11:00 AM
@mr5 fake enews
 
> Aephraim Steinberg, a physicist at the University of Toronto, said the light particles coming out of the cesium chamber may not have been the same ones that entered, so he questions whether the speed of light was broken.
Although a certain bias let's me believe in them, because I can't accept c being an absolute limit
 
@Neil They've posted sth like that a long time ago
@Squirrelkiller FYI, I can't
 
@AvnerShahar-Kashtan Accurate as hell.
 
So apparently "Pizza flavoured" pringles exist
 
@Neil I dont understand, what thing should the ashamed about in particular?
 
11:08 AM
WHY DO PEOPLE PUBLISH UNSIGNED NUGET ASSEMBLIES
 
So they can use them for their personal projects?
SO they can put "Published a nuget package" in their résumé?
SO they can try stufff?
 
But you can use signed assmeblies in unsigned projects
But you can't used unsigned assemblies in signed projects
 
So they can annoy people who randomly install shit from nuget they have no business in knowing about in the first place?
 
id vote for the published nuget package on resume, and dont write signed projects
 
> what thing should the ashamed about in particular?
Wielol - 2018
 
11:21 AM
> I dont understand
- Wietlol, 2018
 
Nah, wietlol everytime
 
Ya you're right
 
AHOY o7
 
There's too many of you
 
11:30 AM
or is there not enough
!!quote get kieran
 
Feb 27 '17 at 16:02, by Kieran
Thank you for confirming im an idiot c:
 
Just needed to know that i'm an idiot
As its entirely possible i've just spend the last 30 minutes trying to get this timer to clear
only to figure out, i was editing a different function to the one i was calling
which explains why it wasn't working
\o/ yay me
 
genius
 
Hey I do that too
 
I mean its not like one is called LastMessageTimer
and one is called RefreshMessageListTimer
 
11:32 AM
Well hello.
 
Yeah pretty obvious if you ask me
Hola
 
they are right next to each other in my file so i can kinda forgive myself
back to not working now o/
one last thing before i leave
!!kieran2
 
Damn it I can't not watch that when posted
 
I would need some help if you've got the time, otherwise just ignor please ;)
It's about comparing XML files....I have a detailed question here
https://stackoverflow.com/questions/52331708/compare-xml-file-attributes-nodes-and-text/52332086?noredirect=1#comment91676287_52332086
Would be happy about some input!
 
11:37 AM
@mr5 Both of them are hoaxes. The first one is a rock formation. There is no wood there. Both creationists and professional archaeologists agree that this is not a boat. The second one is believed to be a rock carving by the pagan culture living there at that time, and not carried there by a boat. Source
 
@Shmosi what exactly do you want as a result? Just know whether or not tehy differ? Exact results?
 
@Squirrelintraining should they* be* ashamed of* in particular
 
@CaptainSquirrel o7 my captain!
 
If you just want a bool, hash the thing and compare those
 
@Wietlol Because to a physicist, this is just about tantamount to declaring 1=2
 
11:49 AM
@Squirrelkiller I have and XML-file with an error in it (just assume ist that simple). A user changes this XML so that the error is not longer there (fore example add or remove lines, Change attributes etc) and I want to get what the user has changed (the old "value" and the new one)
 

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