Comment by Simon_Weaver on Google Chart hAxis.gridlines.count does not work...
Actually it's even more nuanced. It says The approximate number of horizontal gridlines inside the chart area. So it's just a guide. Ticks works much more reliably.
View ArticleAnswer by Simon_Weaver for Can I hide the HTML5 number input’s spin box?
Important message of cautionWhen using a mouse with a scrollwheel, be aware that scrolling with the cursor hovering over a type=number textbox results in the number changing up or down.Now this may be...
View ArticleAnswer by Simon_Weaver for How to check if ios safari/chrome is in lockdown...
I'm using this:if (typeof window.FileReader === 'undefined'){ alert('Do you have Lockdown Mode enabled on your device?\n\nIf so you will need to add our website to the list of allowed sites to...
View ArticleAnswer by Simon_Weaver for Can't find variable: FileReader in Safari
This error can occur when using Lockdown mode - as FileReader is not available.
View ArticleComment by Simon_Weaver on How to export JavaScript array info to csv (on...
Important PSA to all developers: When making a download link, please take time to consider the most appropriate filename format. It is all too common to see ProductsExport.csv or...
View ArticleComment by Simon_Weaver on How To Send A Reply With Gmail API
Wow I managed to not realized this for 5.5 years! I turned off conversation view many many years ago probably because of this ambiguity.
View ArticleComment by Simon_Weaver on How to quote original message in reply using Gmail...
It seems like a massive oversight that the original message isn't quoted somehow by Gmail when using the API.
View ArticleComment by Simon_Weaver on map function for objects (instead of arrays)
> You're not supposed to rely on the order of keys in objects anyway. I'm sorry (and how did that get so many upvotes) but in Javascript you absolutely can rely on the order of keys in an object and...
View ArticleComment by Simon_Weaver on How to prevent toggling mat-expansion-panel by...
This is now public so you can do toggle()
View ArticleAnswer by Simon_Weaver for Please run `npm cache clean`
A 'non corrupted global cache' is not the same as a 'non broken node_modules' for a particular project.Just got this when trying to run a simple Angular CLI command (Windows):An unhandled exception...
View ArticleComment by Simon_Weaver on What is the absolute minimum content for...
If you're looking for a more 'general' minimal config see this: learn.microsoft.com/en-us/troubleshoot/developer/webapps/aspnet/…
View ArticleHow to set context on an Angular [cdkPortalOutlet]
The Portal module in Angular Material (CDK) is a very powerful way to render dynamic content into a 'PortalOutlet'.A Portal<T> can be a TemplateRef where T is the type of the context...
View ArticleAnswer by Simon_Weaver for ERROR Error: No value accessor for form control...
Check for basic typos in the control you're using.I'm using signals, where item.selected is a Signal<boolean> and was getting the same error on the following code:<mat-checkout...
View ArticleComment by Simon_Weaver on Facebook data deletion callback gives "Unable to...
Thanks. Reverse engineering PHP code is really not what I wanted to do on a Friday night!
View ArticleComment by Simon_Weaver on How to create a FrozenDictionary from a static list
WARNING: If you've ever used the traditional ToDictionary() you've probably at some point come across a duplicate key exception. Important to note that ToFrozenDictionary does not raise an exception in...
View ArticleRun two async tasks in parallel and collect results in .NET 4.5
I've been trying for a while to get something I thought would be simple working with .NET 4.5I want to fire off two long running tasks at same time and collect the results in in the best C# 4.5 (RTM)...
View Article