« first day (4066 days earlier)      last day (865 days later) » 

mr5
1:04 AM
o/
@Freerey why does it matter?
 
 
2 hours later…
3:09 AM
Squirrels and chowchows, can ask something about entity framework here?
I have employees, which have A payment classification :(hourly | commision | Salary). Hourlies have many timecards. How do I get the timecards to have keep track of the employeeIds?
How do I have grandparent foreign keys? I have tried this.


modelBuilder.Entity<Timecard>()
.HasOne<HourlyPC>()
.WithMany(pc => pc.Timecards)
.HasForeignKey(t => t.EmployeeId)
.HasPrincipalKey(pc => pc.EmployeeId);

but it gives me an error, Because timecard is referencing PC, not Hourly.
 
3:42 AM
Hello all!
 
 
2 hours later…
 
2 hours later…
mr5
7:44 AM
How can this query yield no such results?
ohh
stackoveflow.com 🤦‍♂️
 
 
4 hours later…
11:20 AM
 
12:10 PM
@mr5 cuz I'd like to know what is or isn't going to be deprecated soon
 
[Captain Obvious] I mean you can store whatever you like in sqlserver binary blobs
[Captain Obvious] It's just that it's probably dumb unless they're tiny because over a certain size I think they just get stored in the filesystem as files
 
what we were doing before was storing blobs in a table with a bunch of other information,w hich I really didn't like....so what we're wanting to do now is have one table just to store an ID and the photo data
and then the rest of the metadata is in a separate table
 
[Captain Obvious] but why? what's the benefit of putting the data and the metadata in seperate tables
 
the metadata won't take nearly as long to load
and it's called normalization
 
[Captain Obvious] What no
 
12:23 PM
what yes
 
[Captain Obvious] normalisation is keeping shit together if its related to itself and nothing else
[Captain Obvious] breaking apart tables for no reason is dumb
[Captain Obvious] And the metadata shouldn't be affected unless your table is poorly defined
 
^therein lies the problem
 
[Captain Obvious] So what you're saying is it's an XY problem
[Captain Obvious] You want to move the image data into its own table because the image table (with the metadata) is crap
 
btw normalization involves keeping tables tied together with a foreign key, which is what we're doing with the new table
 
[Captain Obvious] Yes and that would be relevant if there wasn't a 1-1 relationship between the image and its metadata
[Captain Obvious] You can't normalise a 1-1 relationship
 
12:28 PM
except it isn't 1-to-1 because we have cases where someone can enter an image record without actually uploading an image
 
[Kesarling He-Him] I have once seen a production level database broken apart because there were too many columns in one table😂
[Captain Obvious] how many columns tho
[Captain Obvious] that's weak
[Captain Obvious] I was running a prod databsae with ~110 columns for years
[Kesarling He-Him] Yeah, but apparently, the dev did not want to scroll
[Captain Obvious] And it had like 60k rows too
[Kesarling He-Him] I have seen those with >500 not broken up
[Captain Obvious] He shouldn't have to scroll wtf, he shouldn't be messing in the database manually anyway
[Kesarling He-Him] That's normal... init?
 
>500 columns is disgusting
 
[Captain Obvious] I've seen tables with tons of columns but high column count tables are usually config ones where they might only have like 1 row
[Kesarling He-Him] You won't believe me if I tell you
[Kesarling He-Him] The guy's a professor in a college. He's got a Ph. freaking D!
[Captain Obvious] so 60k records is unusual in a table with many columns
[Kesarling He-Him] Still though, has anyone ever come across something like that, where the columns were so many that the table had to be broken up?
 
@EdGzi Barcode warehouse are very flexible on price
 
[Kesarling He-Him] Um... with config files, I prefer storing them in a File and just reading from it
 
12:33 PM
Probably could have got them for about a grand ex-vat, maybe less
 
[Captain Obvious] right im back in here now
[Captain Obvious] Not ideal when you have loads of databases for the one application
[Captain Obvious] Or your application is load balanced across multiple hosts
[Kesarling He-Him] Never come across that
[Captain Obvious] Neither had I until I started this job
[Captain Obvious] My old job used to have users counts of up to like 40
[Captain Obvious] And only had to deal with like 50k requests per (working) day
[Captain Obvious] So could easily be hosted from a single host
[Captain Obvious] But uh, my new place
 
1:32 PM
alright we're likely not making the new table to store blobs. talked with a coworker and he seems to think at this point that I made the right move earlier this year when I took the blobs off SQL and stored them as images within a server filesystem
the server was just being slow yesterday, which made image-based reports time out when loading
ANYWAY: does anyone here know how MATE determines what icon to assign to filetypes, or how it stores custom icons to specific files?
 
[Kesarling He-Him] @butler1233, you'd said that you've some knowledge of React
[Kesarling He-Him] Can you help?
[Kesarling He-Him] Error message in the code
 
@Botler @CaptainObvious welcome to (tiny) big data environments!
 
1:52 PM
@CaptainObvious How do you mean? Negotiable ?
 
[Captain Obvious] @Kesarling He-Him not sure, but maybe you're assigning something between the first and second run to props.orders which doesn't have the map function
[Captain Obvious] is maybe it's not an enumerable
[Captain Obvious] @Edgzi yeah, you can just speak to their sales people and be like "yeah that's expensive, what can you do" and then they'll usually knock a load off the price
 
2:34 PM
[Kid25] I like you all...
 
everything is awesome
 
2:46 PM
@Botler Going to try now :D
 
@Freerey everything is kewl when you're part of a team
 
3:11 PM
[Captain Obvious] @edgzi I used to have a contact there called Charlotte something. She was quite helpful usually.
 
 
6 hours later…
9:29 PM
Hey so I am working with a multi dimesional array example:
string[,] phrases = new string[,] { { "hello", "world" }, { "hello2", "world2" } };
Is there any way to search through this in that specific order?
Something like:
Console.WriteLine(Array.Exists(phrases, {"hello", "world"})); // Result should be True
Console.WriteLine(Array.Exists(phrases, {"hello", "hello2"})); // Result should be False
 

« first day (4066 days earlier)      last day (865 days later) »