Re: Blazor css overrides

2023-12-02 Thread Tony McGee via ozdotnet
It's not always the last selector that overrides previous ones. You're probably running into specificity issues from the original stylesheet, and the !important is nuking them from orbit, to be sure. Using !important isn't a great solution in general terms, but for this use case is probably

Re: Blazor popularity and use

2023-09-07 Thread Tony McGee via ozdotnet
Not so fast, Stockholm syndrome is comfy sometimes  https://world.hey.com/dhh/turbo-8-is-dropping-typescript-70165c01 https://devclass.com/2023/05/11/typescript-is-not-worth-it-for-developing-libraries-says-svelte-author-as-team-switches-to-javascript-and-jsdoc/ -T On 8/09/2023 13:05, Greg

Re: [OT] Junked business registry overhaul blew out by $2.3b

2023-08-29 Thread Tony McGee via ozdotnet
Worse, they were probably drowning in XML schema definitions. Only one mention of XML in the redacted report, but three mentions of SBR1, so that still counts.  -T On 29/08/2023 16:35, Greg Keogh via ozdotnet wrote: Couldn't they recruit enough COBOL programmers? /Greg K/ On Tue, 29 Aug

Re: [OT] Assign app role in subscription

2023-05-08 Thread Tony McGee
Hey Greg, In the Select Members panel on the right, it'll show users and groups in the list by default, but doesn't show applications. You may just need to search for the application service principal by name. I traced these steps in one of my subscriptions and it found the application no

Re: Replacement for old PictureBox

2023-03-15 Thread Tony McGee
Hi Greg, The WinForms PictureBox control is pretty basic, it's mostly designed for displaying images, not really for drawing. In the distant past I've used Leadtools Imaging Pro for a WinForms document management project that required annotation, but that can get expensive if your needs are

Re: [OT] Finding duplicate rows in Sql Server

2022-11-17 Thread Tony McGee
Also be aware that there's a gotcha when using WHERE abc NOT IN (SELECT xyz FROM ...) that has bitten me a few times in the past...  Perhaps not an issue in this scenario because it's an ID and likely NOT NULL, but if the select subquery ever returns a NULL value for xyz the condition

Re: Platform x64 argument

2022-10-12 Thread Tony McGee
My understanding is that you target what you want to support, so if he's only shipping fully managed code and supporting x64 systems then it doesn't matter too much but in that case may be sidelining x86 or ARM users for no real reason. It gets more complicated if you need to support multiple

Re: VS2022 recent list stall

2022-08-29 Thread Tony McGee
– they are monitoring feedback on it. *From:* Tony McGee via ozdotnet *Sent:* Monday, August 29, 2022 12:50 PM *To:* ozdotnet@ozdotnet.com *Cc:* Tony McGee *Subject:* Re: VS2022 recent list stall Heh, yeah VS2022 search text boxes appear to be a bit wonky occasionally. Tim Corey called it out

Re: VS2022 recent list stall

2022-08-28 Thread Tony McGee
Heh, yeah VS2022 search text boxes appear to be a bit wonky occasionally. Tim Corey called it out in a MAUI first look video a few months back when something similar happened in the 17.3 preview bits. I guess it's not fixed yet... https://youtu.be/HmyfjAaPW0g?t=109 Speaking of annoyances with

Re: Hawkeye replacement - find control and get instance name and maybe other properties

2022-07-14 Thread Tony McGee
There was a dotnet equivalent to the Spy++ tool called ManagedSpy back in the day. This looks like related, no idea if it still works: https://github.com/ForNeVeR/ManagedSpy -Tony On 14/07/2022 14:35, David Burstin via ozdotnet wrote: Hi all, Does anyone know of a current tool that can be

Re: Blazor deploy error

2022-07-12 Thread Tony McGee
Hah, https://wiki.c2.com/?TrimYourPosts Speaking of email signatures, on the list I find myself referring to them more often as it's become harder determine the message origin since the cutover. All messages are now showing as "From: ozDotNet" now, with an mix of To: and Cc: from those who

Re: C# 6+ Random algorithm changed

2022-06-30 Thread Tony McGee
Oh nice, thanks, I missed this news for .NET 6. I've used Mersenne Twister in the past for an app where the RNG pool didn't need to be cryptographically secure but the algorithm did have to be explicitly specified in the deliverable. Also, interesting detail in the implementation as noted -

Re: It's that time of year - F#

2022-06-28 Thread Tony McGee
A lot of the early advantages of F# have eventually come to C# over the years - higher order functions, immutability, type inference, pattern matching, etc so that can't be helping F# adoption. I remember seeing a slide from MS Build several years back that indicated an order of magnitude

Re: [OT] C++ Stupidity and Delusion

2022-06-23 Thread Tony McGee
Yeah, Rust is an interesting and evolving language, which makes it a bold decision to allow use at a systems level. I came to .NET via C++ in the early '00s and still use it occasionally but C++ is almost unrecognisable from those days.  So I thought I'd have a play around with Rust instead

Re: [Trivia] PowerShell / .Net implicit string conversions

2022-06-23 Thread Tony McGee
Yeah PowerShell has/has a number of oddball things like this. You can use "$(Get-Date -f x)" where the x can be any standard .net format code (d, G, etc). Both of the following were thankfully fixed in PS6+ as the defaults are much better now, but the ones I always got snagged on with

Re: ozdotnet - New List Infrastructure

2022-06-21 Thread Tony McGee
Agreed, many thanks to our benevolent list maintainer(s). Untiring effort, all the way back to when it was called ausDotNet. PS. That NUC sounds like a champion, it belongs in a museum as Indy would say -Tony On 21/06/2022 15:17, David Burstin via ozdotnet wrote: Thanks David for all the

Re: Technology euology

2022-03-24 Thread Tony McGee
> Remoting - Farewell old chum. I believe they're called smart contracts these days ;-) T

Re: Online source code management tools - GIT / Visual Studio / Bit Bucket / Other ???

2021-06-10 Thread Tony McGee
Hi all, I tend to use command line as well, with Sourcetree sourcetreeapp.com as an occasional lifeline when the git-fu fails.  -Tony On 10/06/2021 14:07, Stephen Price wrote: Hello Mr Groggy.  I've been using github for everything. I don't use the in

Re: WCF ServiceClient async

2020-05-22 Thread Tony McGee
It's not svcutil magic, it's built into WCF - the channel factory on the client creates an implementation of the service interface that supports both synchronous and asynchronous calls: https://marcinjuraszek.com/2018/01/async-wcf-with-channelfactory.html Judicious mapping of the

Re: Marshall C++ string to C#

2019-11-25 Thread Tony McGee
You could return a BSTR and let the interop marshaling do clean up for you: https://www.codeproject.com/Articles/1189085/Passing-strings-between-managed-and-unmanaged-code On Tue, 26 Nov. 2019, 11:09 Greg Keogh, wrote: > > msg is a stack variable, you can't return it iirc. Either create a

Re: [OT] Load testing web app

2019-08-21 Thread Tony McGee
Hi, Visual Studio has load test projects built-in, but they're deprecated and will disappear soon: https://docs.microsoft.com/en-us/visualstudio/test/quickstart-create-a-load-test-project?view=vs-2019 There's a whole raft of alternatives though: load impact k6, eggplant.io, Tricentis Flood,

Re: Distributing Azure apps

2019-07-15 Thread Tony McGee
Phil Haack has a timely post on this: https://haacked.com/archive/2019/07/12/deploy-to-azure/ cheers, Tony On 15/07/2019 14:52, Donald wrote: We use Azure DevOps as well, but for the adhoc deployment it is possible to publish a Zip file to be deployed via Powershell, ftp or Kudo see

Re: [OT] SQL Server DB designed for reporting

2019-01-31 Thread Tony McGee
One way to do this is to have a regular job that uses SQL Server Integration Services package(s) to extract data from the source system, transform it, cleanse, etc then load it into a destination database (ETL) Often, but not always, the destination database has a star schema with fact and

Re: [Possibly OT] Job scheduler from Sql Server

2019-01-03 Thread Tony McGee
I'm not sure if there's anything within SQL Server that does this specifically. If you're planning to write some code to achieve it though then I would recommend first looking into Hangfire (https://www.hangfire.io) to greatly reduce that burden. On Fri, 4 Jan 2019, 08:39 Tom P Hi folks > > I

Re: [OT] Big Windows 10 update

2017-12-12 Thread Tony McGee
Although there's plenty of room for improvements on scheduling when updates happen (e.g. "active hours" as currently designed isn't good enough IMHO), I don't see many complaints here about change or the frequency of updates. Complaints are quite rightly that the software was working before it

Re: Marshalling strings

2017-10-23 Thread Tony McGee
My understanding would be that either the caller allocated a large enough buffer and passes it to the library in which case the callee does a copy and doesn't need to worry about it -or- the callee keeps the pointer they've given out and expects the caller to pass it back to another function to do

Re: Context menus for .sln file

2017-07-04 Thread Tony McGee
Hopefully I'm not breaking any rule to give Directory Opus a plug, it's great for this stuff and loadsmore. Link: http://www.gpsoft.com.au/ e.g. http://imgur.com/LPcOuOJ No affiliation at all, just an extremely happy customer - it's actively in development locally in Brisbane so shout out if

Re: Entity Framework - the lay of the land

2016-09-20 Thread Tony McGee
Oh boy, this is a technique I see way underutilised when using EF: /All objects from EF were transformed into new objects for use in the website /e.g. If I just want a high level list of the product categories a customer has purchased, it's far too easily get stuck in a rigid thought pattern

Re: SQL foreign key question

2016-02-08 Thread Tony McGee
This can sometimes happen to a primary key if you use the visual query designer to create a FK relationship and don't change the defaults before clicking OK. It looks like it's ignored in the insert query execution plan. On 9 Feb 2016 2:32 pm, "David Burstin" wrote: > I

Re: Any Powershell gurus?

2016-01-16 Thread Tony McGee
Hi Greg, It seems unfortunate that you can't specify the drive letter directly with Mount-DiskImage It can be set though, with a bit of mucking around and without the need for a dummy drive letter first: $ImagePath = 'R:\en_sql_server_2014_enterprise_core_edition_x64_dvd_3935310.iso'

Re: Geographic lookups

2014-08-17 Thread Tony McGee
geonames.org has both free and premium web services, as well as downloadable sets of data if you wanted to roll your own. On 17/08/2014 19:59, Stephen Price wrote: Hey all, Am looking for some kind of service for lookups. Country, that gives states and regions. Citys optional. Any good ones

Re: Surface RT Prices Slashed $349

2013-07-18 Thread Tony McGee
Yeah Rocky Lhotka wrote a great set of posts on Windows 8/RT side-loading earlier in the year. http://www.lhotka.net/weblog/Windows8WinRTSideloadingUpdate.aspx The deployment story is way too complicated costly for Small/Medium businesses. I really hope Microsoft addresses this issue. With

Re: SQLite and SQL Server schemas

2013-01-22 Thread Tony McGee
Depending on your application it might make more sense to try to constrain the SQLite identity column to 32 bits, but if you can't do that you should be able to use a 64bit integer for the SQL Server column: CREATE TABLE [dbo].[ExampleTable] ( [ExampleId] [bigint] IDENTITY(1,1) NOT NULL,

Re: [OT] FYI, Large Dell Monitor Sale (again).

2012-06-05 Thread Tony McGee
Looks like a Logitech Cordless Desktop Comfort Laser. The Trackman Wheel Quickcam Pro were the giveaways, folks tend to either go nuts on Logitech kit or steer well clear. On 5/06/2012 4:42 PM, Corneliu I. Tusnea wrote: Any idea what keyboard is the one in the pictures?

Re: Trouble converting utf-8 resource to string

2012-04-15 Thread Tony McGee
Have you tried constructing a StreamReader object (passing in the Stream object + Encoding into the StreamReader constructor) then calling XDocument.Load(StreamReader) to create the document? On 15/04/2012 6:26 PM, Greg Keogh wrote: Folks, I have an XML file as an embedded resource. The file

Re: File/folder sync options for Windows

2012-04-08 Thread Tony McGee
I use SyncBack http://www.2brightsparks.com/ They have a free version which just runs as an icon in the background but quite configurable with different sync options and sounds like it should do what you need. They also have Std/Pro paid versions which can run as a service includes load of

Re: New look of Visual Studio, what are your thoughts?

2012-02-24 Thread Tony McGee
Seconded - we still support a really old Windows Mobile apps that requires Visual Studio 2003, database projects that need to support both SQL Server Reporting Services 2005 and 2008 incompatible versions of RDL and report viewer controls, and some ASP.NET 4/.NET 4 web

Re: makecert fixed on RSA ?

2011-12-27 Thread Tony McGee
Hi Tom, The signature algorithm that you can select from there (md5, sha1, etc) is a particular type of algorithm called a cryptographic hash function that is used for generating a small hash value from a much larger quantity of data. AES is a different type of algorithm (symmetric key) used

Re: Any one using Rockford Lhotka's CSLA?

2011-06-02 Thread Tony McGee
time - you inherit from specific base classes. Likewise with Parent/Child business objects. The framework seems especially rigid in this regard, but I'm sure there's a reason for it, I just never understood it fully. Cheers, Tony McGee On 2/06/2011 2:57 PM, Kirsten Greed wrote: Hi All

Re: Handling 3rd party assemblies with build servers

2011-02-08 Thread Tony McGee
Interesting, our dev team was talking about this issue just today. In our team we check in any 3rd party assemblies into a folder like you've done. If an assembly is downloadable in source form we do a compilation and then the source goes with the pre-built assembly and generally works pretty

Re: [OT](ish) Interview Questions

2011-01-20 Thread Tony McGee
You're hired! Coffee as a Service (CaaS) is going to be the next big thing. On 20/01/2011 11:02 AM, Noon Silk wrote: Haha, wow, I would completely fail here. I must admit I have no technical understanding of the process of coffee making. I could explain the process of walking to the local

Re: Visual Studio installer problem

2010-12-03 Thread Tony McGee
+1 recommendation for the WiX toolset. Depending on how complex your requirements are you may not even need a custom action just to write configuration to an XML file. We've had success collecting some MSI variables at install time and then using an xpath expression to save the values to