Tuesday, December 3, 2024

4 vCPUs are needed for this configuration, but only 0 vCPUs (of 4) remain for the Standard DSv2 Family vCPUs. Azure

 I have dabbled with Azure over the years, but still rate as a beginner and this is very much some sort of beginner error, and I'm not sure how I was able to make it happen but for what it is worth: I was attempting to create an Azure Kubernetes Service cluster, and when I got to the end of the Creat process I got a variation of the above error: "4 vCPUs are needed for this configuration, but only 0 vCPUs (of 4) remain for the Standard DSv2 Family vCPUs."  I had jumped over the set up process and somehow was not warned that I had no Virtual Machine set up.

I tried to reproduce the problem later, but instead I got the warning "Creating an Azure Kubernetes Service Cluster without a system node pool is not permitted" which, while not very helpful at least gives an indication of what is missing.


So the solution seems to be to have already set up a VM so that the system node pool is correctly provisioned when the AKS cluster creation attempt happens.

Thursday, July 18, 2024

Razor component not found in razor page

 

This was a problem both with VS Code and Visual Studio 2022 (various updates)


There is somebody with the same problem on Stack Overflow but it is never explained why the "fix" worked

https://stackoverflow.com/questions/58527473/web-pages-shared-components-razor-component-not-found-in-razor-page


What happened in my case is that I right-clicked and asked to exclude a file from the project, renamed it, and added another file with the same name. This seems to have resulted in the following set of items in the .csproj Project file


  <ItemGroup>

    <Content Remove="Components\Pages\DeleteItem.razor" />

  </ItemGroup>


  <ItemGroup>

    <UpToDateCheckInput Remove="Components\Pages\DeleteItem.razor" />

  </ItemGroup>


  <ItemGroup>

    <_ContentIncludedByDefault Remove="Components\Pages\DeleteItem.razor" />

  </ItemGroup>


  <ItemGroup>

    <None Include="Components\Pages\DeleteItem.razor" />

  </ItemGroup>


When I removed these lines, everything compiled as intended

Saturday, April 6, 2024

Auditing Business risk of outdated and unsupported software

 I came across two instances recently, the first was a former colleague had an unscheduled week of pain when one of his customers, the only one who bother with compliance, but are very good at it, did one of their regular audits and discovered that .Net Maui was going (has by now) replaced Xamarin as Microsoft's supported mobile framework. This in the short term would have been no big deal, but in the medium term, the customer are correct. I encountered the opposite level of vigilance myself in the last couple of days, I came across and open source (or rather abandoned source) project which uses Visual Basic 6, it really dates back to the 1990s and while the program itself would still be perfectly up to date, it depends on some ancient OCX controls from a variety of different manufacturers, all of whom have either gone out of business or been taken over at least once, and none of whom still offer their original product in VB6 friendly format. There is no great harm done here, but for a commercial product this happened quite a lot when Microsoft abandoned Visual Basic 6 and went to C# and VB.Net. Many of the software development companies that supplied third-party controls to other Visual Basic developers either went out of business or switched to .Net or Web controls, and anybody who didn't deal with the situation at the time found themselves in an increasingly impossible situation over the years. So your ten year old business PC succumbs to old age -- no problem, you install all the software systems. Except Maybe they no longer install or work on Windows 8, or Windows 10 or Windows 11, and you cant get a licence for Windows 7 or XP. Big Ooops. Similar or even worse trouble if you are a company who partially moved on but foolishly decided to support and fix old versions of your software -- the build computer dies of old age and that's the one with the licences ActiveX controls from 1999 on it, and somebody threw out the CDs 12 years ago and its 2024 and you have *no* idea what to do next.  Bigger customers have or used to be able to force Microsoft to offer some sort of support, but the myriad of little companies who used to form an ecosystem around this have mostly disappeared and you are on your own. The same issue is present to a lesser extent with Java, Python, and other programming languages and frameworks. It is as well to be aware of this and factor it into business planning, where software risk often seems to get overlooked

Wednesday, February 14, 2024

Bing Copilot for simple developer related tasks: example Github

Obviously you can search for the documentation yourself, but this does illustrate a different way of thinking.

Question :  what git commands do I need to start a new project


Answer (Bing Copilot):

To start a new project with Git, you can follow these steps:


```markdown

1. **Create a new directory** for your project:

    ```

    mkdir my_project

    cd my_project

    ```


2. **Initialize a new Git repository** in your project directory:

    ```

    git init

    ```


3. **Create a new file** or **add existing files** to the project directory.


4. **Add the files** to the Git staging area:

    ```

    git add .

    ```

    The `.` adds all new and modified files to the staging area.


5. **Commit the files** to the Git repository:

    ```

    git commit -m "Initial commit"

    ```

    The `-m` flag lets you add a commit message inline.


6. **Check the status** of your Git repository:

    ```

    git status

    ```

    This will show you the state of your working directory versus the repository.


7. If you want to **push your project to a remote repository** (like GitHub), you would first create a new repository on GitHub, then **add the remote repository** to your local Git repository:

    ```

    git remote add origin <your-github-repo-url>

    ```


8. Finally, **push your local repository** to the remote repository:

    ```

    git push -u origin master

    ```

    This pushes your commits to the `master` branch of the remote repository.

```


Remember to replace `<your-github-repo-url>` with the actual URL of your GitHub repository. Happy coding! 😊

Friday, February 9, 2024

Bing Copilot now able to create text video summaries

 Bing Copilot can create text summaries with time stamps from videos running in the main Bing Window, I'm not sure how useful this will be in general but it will be a time saver for people who need to do video summaries. The Generate video summary button should work, although previously you could type in "summarise this video" but  this now gets a "I am a text chat" response from Copilot. Chrome has extensions, but if you're a Bing user this is a useful out of the box feature




Monday, January 29, 2024

Payhip store Unlisted Product Gotcha -- It being too simplistic or am I Overcomplicating?

 As part of another blogging business and working on an actual digital publishing business, I came across (that is, baffled myself) using the Payhip Store Builder.

If you have an "Unlisted" product on the product screen and go away and forget it, you may have some heartbreak later on until you rediscover what you had forgotten.



Overall so far, I find the Payhip Store Builder a bit stifling, if I'm going to make howlers like that I'd like them to be complicated situations where I got into the deep doo-doo myself, not just mis-applying some radio button ...

Saturday, January 27, 2024

ChatGPT and Office Script

 more comments when I watch it a second time

https://www.youtube.com/watch?v=70AyXUoBRqw

Office Script as an alternative to VBA

Office Script has been around for a while, the big draw seems to be Online, so Office 365 etc.

I haven't really been following it, but getting up to speed now. See the video below which got my attention a while back 

Big Caveat: on deeper investigation, It only seems to be available for Excel, not Word, which will still be stuck with VBA for the time being, which is a couple of years on from all the excitement, so slightly disappointing there. But something similar has happened with Google Docs, so more on that when I get time to post

https://www.youtube.com/watch?v=DOvHqukAGTY&t=57s


https://www.youtube.com/watch?v=fny4zUycp_w


Video summary [00:00:00]1 - [00:14:01]2:

This video introduces Office Scripts, a feature that allows users to automate tasks in Excel Online and Teams using TypeScript. It demonstrates how to record, edit, and run a script that creates a column chart from a data range. It also shows how to make the script dynamic, so that it can work on different data sets and files. The video covers the basics of Office Scripts, such as the code editor, the script gallery, the output window, and the script location.

Highlights:

  • [00:00:00]3 The purpose and benefits of Office Scripts
    • Automate boring, repetitive tasks in Excel
    • Work on Excel Online and Teams
    • Replace VBA macros that don’t work on the web
  • [00:01:15]4 How to record a script using the Automate tab
    • Click on Record Actions
    • Perform the desired actions on the workbook
    • Stop the recording and view the script
  • [00:04:04]5 How to edit a script using the code editor
    • Rename the script and save it
    • Use the comments to understand the code
    • Make changes to the script, such as adding variables or methods
  • [00:06:04]6 How to test and run a script on different data sets
    • Click on Run Script
    • View the output and the chart
    • Run the script on other tabs or files
  • [00:11:08]7 How to manage and share scripts
    • Find the scripts in OneDrive under Documents
    • Use More Options to copy, rename, share, or delete scripts
    • Use Power Automate to automatically run scripts
  • [00:13:18]8 How to run scripts in Teams
    • Open the file in Teams
    • Go to the Automate tab
    • Select and run the script


Friday, January 26, 2024

Shameless SEO and ChatBot Experiment

 This may mark something of a pivot, after not having posted for seven years? I might do some rapid linking of topics that have caught my attention, almost a rambling book mark collection.

Possibility one: Joshua does a job I wouldn't like at all but his breakdown of how he integrates ChatGPT with Google Sheets certainly makes it look feasible

https://www.youtube.com/watch?v=KT85wQFlRk4&t=321s