Quantcast
Channel: User Simon_Weaver - Stack Overflow
Browsing all 85 articles
Browse latest View live

How do I reliably get an image dimensions in .NET without loading the image?

I know how to get the size (x,y) of an imageImage.FromFile("cat.jpg").SizeBUT that requires loading the image from memory.When I view the images in Windows Explorer it shows me the size.How do I access...

View Article


Comment by Simon_Weaver on How to use signal with Angular Reactive Forms

Why doesn't this have any upvotes? Weird. I was just looking for the simplest thing and this seems to work just fine :-)

View Article

Comment by Simon_Weaver on MSB3245: Could not resolve this reference. Could...

Hi to anybody who just deleted their _work folder to save disk space and now it doesn't work anymore because you've been getting away with the wrong configuration for a couple years :-)

View Article

Comment by Simon_Weaver on Remove Visual Search feature from Edge...

@Smith5727 I remember even just a week or so ago getting a notification from somewhere with someone else asking 'Please add my domain to the list of excluded domains' - so it seems nothing has changed....

View Article

Comment by Simon_Weaver on Save all not working in Visual Studio Code

Weird. I use that extension and never had this issue until I started this week 'tearing off' documents to put them on a second screen. I hadn't realized this option had been available for a while. So...

View Article


Comment by Simon_Weaver on EF core best way to update only specific fields...

I don't think you could have made this harder for yourself if you'd tried!

View Article

Answer by Simon_Weaver for Angular reactive Form error: Must supply a value...

Unfortunately undefined isn't allowed, you need to set each property to null.You can convert properties before calling setValue with something like this: // set all 'missing' OR 'undefined' properties...

View Article

Comment by Simon_Weaver on Angular Material tab height

I feel like this would probably conflict with the goal of the question tbh.

View Article


Answer by Simon_Weaver for Angular Material tab height

In a grid layout it can be as simple as setting overflow:auto on the tab control. I do something like this:.container { display: grid; grid-template-rows: auto 1fr; gap: 1em; mat-tab-group { overflow:...

View Article


Comment by Simon_Weaver on Can I hide the HTML5 number input’s spin box?

"If you are trying to hide controls the browser adds, it should be a hint that you are misusing that input type." 1000 times no! I have a textbox to enter a length in inches. Up and down arrows look...

View Article

Comment by Simon_Weaver on How to export JavaScript array info to csv (on...

"surely this is a solved problem right" - problem is our bosses never understand such things! too many unsolved problems!

View Article

Comment by Simon_Weaver on WPF text Wrap vs WrapWithOverflow

You can use MaxWidth and MaxHeight too in order to constrain text to a certain width and number of lines. (not sue offhand if there's a way to explicitly specify # of lines).

View Article

Comment by Simon_Weaver on Update powershell to the latest revision

Fantastic! So I've never actually been using anything other than version 5.1 !

View Article


Comment by Simon_Weaver on Call a method in Select() of an Entity Framework...

Seems that AsExpandable() is no longer needed: github.com/scottksmith95/LINQKit/issues/100 Disclaimer: I can't comment on the nuances but if anyone else knows please comment.

View Article

Answer by Simon_Weaver for XAML Columndefinitions width * not taking...

If you're using SharedSizeGroup see this questionGrid's SharedSizeGroup and * sizing

View Article


Comment by Simon_Weaver on using lodash .groupBy. how to add your own keys...

Watch out for this: stackoverflow.com/questions/56389864/… if you don't want to import the entire library. I think that means 'flow' is better despite this looking really nice!

View Article

Comment by Simon_Weaver on using lodash .groupBy. how to add your own keys...

This should've been there 20 years ago :-(

View Article


Comment by Simon_Weaver on How can I create a unique constraint on my column...

Disclaimer: It may be possible to create a CONSTRAINT that allows nulls. I frankly didn't have time to look, but was so astonished to not see anyone mention that concern in 13 years. I only recently...

View Article

Comment by Simon_Weaver on SQL Server Management Studio crash on edit rows

This is still a problem! 20.2.30 on a new laptop. It can take a minute or two or ten to open a table. Sometimes crashes

View Article

Comment by Simon_Weaver on What's FirstOrDefault for DateTime in Linq?

This can be particularly useful when you conceptually want FirstOrDefault(null) which fails because it matches the overload with 'predicate'!

View Article
Browsing all 85 articles
Browse latest View live