Posts

Showing posts from March, 2024

Introducing AWS CodeConnections, formerly known as AWS CodeStar Connections - devamazonaws.blogspot.com

AWS is renaming AWS CodeStar Connections to AWS CodeConnections. The name change is effective in the APIs, CLI, SDK, and documentation. The AWS Management Console will create connection resources referencing CodeStar Connections till May 1, 2024, and after that it will generate connection resources referencing CodeConnections, to give you time to make changes in your IAM policies to use the new resource names. Your existing connections that reference AWS CodeStar Connections will still to continue to work as they did previously. The new APIs, CLI and Console will accept both the old and new connection resource identifiers, and the old APIs, CLI and SDK referencing CodeStar Connections will not be available after April 2025.   Post Updated on March 29, 2024 at 09:54PM

[MS] Bing on .NET 8: The Impact of Dynamic PGO - devamazonaws.blogspot.com

Image
It has been over a year since I last updated everyone on the status of .NET in the Bing stack, specifically the high-performance workflow execution engine sitting right in the middle of everything. In that time, the scope of this engine has only increased, especially with the release of Microsoft Copilot. While our workflow engine originated under Bing, it's fair to say that it now undergirds a significant portion of the search and data stack in many Microsoft applications. We started testing .NET 8 from its early preview releases. While there were clear incremental benefits in performance across the core .NET libraries in .NET 8, the greatest factor in our upgrade was the substantial improvement made to Dynamic PGO. This feature had been in preview form since .NET 6 and in .NET 8, the improvements were significant enough that it was turned on by default. Previous Posts Migration of Bing's Workflow Engine to .NET 5 .NET Performance Delivers Again for Bing, From .NET 5 to .N...

[MS] How can I tell C++ that I want to discard a nodiscard value? - devamazonaws.blogspot.com

C++ lets you add the [[nodiscard]] attribute to a function return value to indicate that the caller must use the result. Given the declaration [[nodiscard]] int important(); simply calling the function and allow the value to be discarded produces diagnostics. void test() { important(); } clang: ignoring return value of 'int important()', declared with attribute 'nodiscard' [-Wunused-result] gcc: ignoring return value of 'int important()', declared with attribute 'nodiscard' [-Wunused-result] msvc: C4834: discarding return value of function with [[nodiscard]] attribute Explicitly casting to (void) works: void test() { (void)important(); } Note that this requires a C-style cast. You cannot static_cast or reinterpret_cast to void . Another option is to store the result into a variable which is attributed as unused, and then allowing the variable to go out of scope immediately. void test() { { [[maybe_unused]] auto&& unuse...

[MS] Image manipulation experiments for Mobile Read Hero Images(MRHI) compatibility - devamazonaws.blogspot.com

Image
Introduction The Consumer Packaged Goods (CPGs) industry relies on multiple channels for selling the products and aims to provide a seamless buying experience for the consumer. With the advent of omni-channel retailing, Consumer Packaged Goods (CPGs) and retailers are striving towards providing the best possible experience to the customer alongside working on providing the most available information on the product they are selling on these touch points. On an e-commerce Channel which sells multiple products, the need for a compliant product (SKU) image is key. This is where a Mobile Ready Hero Image (MRHI) becomes mandatory. Additionally, every CPG business wants to adhere to the brand guidelines. At a high-level, a composite of the MRHI and Brand Guidelines should be adhered to, by all SKU Images sold on a given e-commerce site. MRHI rules ensure that the image clearly specifies the 4Ws W ho is the brand W hat it is W hich variety it is Ho W much of it there is Note: All i...

[MS] Bot Powered Viva Connections extensibility supported for Teams Solutions - devamazonaws.blogspot.com

Image
We are excited to announce improved support in Microsoft Teams solutions for the Bot Powered Viva Connections extensibility which initially was released in early 2024. Bot Framework powered Adaptive Card Extensions (ACEs) will become automatically available in the Viva Connections as cards for adding to the dashboard. There is no explicit install required  of the Teams application containing the Bot Powered ACEs. Starting with the Microsoft Teams manifest version 1.17 , you can define the required card configuration in the solution manifest, which will then result the extension to get deployed. 1.17 is currently in dev preview status (when this blog post released) and is expected to get released during April 2024. When 1.17 is officially released, it will be also supported for the Microsoft Teams solutions in the store, enabling marketplace solutions to take advantage of bot powered Viva Connections extensibility. See the following documentation for more details around publishing...

[MS] In 4 Weeks: Visual Studio LIVE! Chicago 2024 - devamazonaws.blogspot.com

Image
Visual Studio LIVE! Chicago 2024   April 29 - May 3 | Swissôtel, Chicago   Join us for Visual Studio LIVE! Chicago for a focused, deep dive into the latest .NET Microsoft Platform developments. You pick the package you want, 3, 4 or all 5 days! This year, we're at the Swissôtel Chicago, with sessions covering Microsoft Visual Studio 2022, .NET 8, DevOps, Generative AI (GitHub Copilot and more), MAUI, JavaScript, TypeScript, Angular, Blazor, modern data processing, and more.   Why Attend?   Relevant Keynotes by Microsoft Visionaries: Zero to Cloud Hero with Visual Studio (04/30): Tim Heuer and Scott Hunter will show how Visual Studio and .NET 8 can expedite your cloud development journey.   Developing Modern Data Applications Using AI with Azure Databases (05/01):  Justine Cocchi, Davide Mauri, and Bob Ward will explore building AI-driven applications using Azure Databases.   Comprehensive Learning: From seasoned developers to software ar...

[MS] Dev Proxy v0.16 with simulated handling Teams Admin Center notifications for Microsoft Graph connectors - devamazonaws.blogspot.com

Image
Focus on developing your app and not on things that won't go into production. See how your apps deal with API errors. We're excited to share the launch of Dev Proxy v0.16, which has new features that help you create better apps. In this version: Simulate Teams Admin Center notifications for Microsoft Graph connectors Microsoft Graph connectors guidance for Copilot for Microsoft 365 Simulate webhooks Support for including comments in Dev Proxy config files Improved UI ...and more! Simulate Teams Admin Center notifications for Microsoft Graph connectors Microsoft Graph connectors allow you to bring your organizational content to Microsoft 365. This allows you to find your content from one place, no matter where it’s stored. What’s more, it gives Copilot for Microsoft 365 access to the content, so that it can help you get more relevant answers. When deploying Graph connectors in your organization, you should consider packaging them as Microsoft Teams app. That way, they’l...

Amazon DynamoDB Import from S3 now supports up to 50,000 Amazon S3 objects in a single bulk import - devamazonaws.blogspot.com

Amazon DynamoDB Import from S3 now supports up to 50,000 Amazon S3 objects in a single bulk import. With the increased default service quota for import from S3, customers who need to bulk import a large number of Amazon S3 objects, can now run a single import to ingest up to 50,000 S3 objects, removing the need to consolidate S3 objects prior to running a bulk import. Post Updated on March 27, 2024 at 09:47PM

[MS] A new MSBuild editing experience - devamazonaws.blogspot.com

Image
MSBuild is a fundamental part of the .NET development experience, but it can be challenging to new and experienced developers alike. To help developers better understand their project files and access advanced functionality that requires editing the project file directly, we’re releasing an experimental MSBuild editor  that has a much richer understanding of MSBuild files than the current XML schema allows. Based on feedback, we hope to make it available by default to all .NET developers. If you work with MSBuild files at all, please try it and let us know how it goes. Who is this for? Although Visual Studio provides a rich UI for managing your project and its settings, you may need to edit your csproj file directly to access certain advanced features that are not exposed in the UI. You may also need to edit csproj files directly when merging changes from source control, or you may be writing targets and props files for local use or for publishing in a NuGet package. If any of the...

[MS] Some choices for encrypting data so that it can be decrypted only by the same user or computer - devamazonaws.blogspot.com

One of the functions that Windows makes available to you for encrypting data is Crypt­Protect­Data . ( Previously .) This function gives you some options for who can decrypt the data: The same user on the same machine. Any user on the same machine. The resulting binary blob can be saved anywhere, and can later be loaded back into memory by any process running within the same scope¹ and passed to Crypt­Unprotect­Data to recover the original data. (Here's some sample code .) Alternatively, you can use Windows. Security. Cryptography. Data­Protection. Data­Protection­Provider . When encrypting, you construct the Data­Protection­Provider with a string that describes who can decrypt the data. C++/WinRT: auto protector = DataProtectionProvider(scope); C++/WinRT: DataProtectionProvider protector{ scope }; C++/CX: auto protector = ref new DataProtectionProvider(scope); C#: var protector = new DataProtectionProvider(scope); JavaScript: var protector = new DataProtectionProvid...

[MS] .NET Framework – March 2024 Cumulative Update Preview - devamazonaws.blogspot.com

Today, we are releasing the March 2024 Cumulative Update Preview Updates for .NET Framework. Quality and Reliability This release contains the following quality and reliability improvements. .NET Runtime Addresses an issue when thread pool recycled lists become unresponsive on multi-CPU-group computers. Addresses an issue where Interlocked.Read from 32-bit apps are much slower on some computers. .NET Libraries Addresses a performance issue in ASP.NET applications after installing the January 2024 .NET Framework update. .NET Compilers Addresses an issue when using the native C# compiler (csc.exe) to compile code making calls to COM interop assemblies. Getting the Update The Cumulative Update Preview is available via Windows Update and Microsoft Update Catalog. Customers using Windows 11, version 22H2 and Windows 11, version 23H2, you will now find .NET Framework updates on the Settings > Windows Update > Advanced options > Optional updates page. Advanced system ...

[MS] JDConf and Microsoft Reactor: A chance to win prizes - devamazonaws.blogspot.com

Have you ever thought about watching a free online event and potentially winning prizes? Microsoft JDConf happens this March 27th and 28th with 3 different editions, each one friendly to major timezones: Americas , Asia , and Europe/Middle East/Africa . If you haven't already, register free to watch the events at jdconf.com . To participate in the prize contest, you must be one of the first 200 developers to check-in on one of any editions at the time the events start, through the Microsoft Reactor , and you must do so with a signed-in Microsoft Account . Now, let's say you are one of the lucky 600 developers. You will get  5,000 points from the Microsoft Rewards program. What do you do with that? The easy and direct way to benefit is by redeeming those points with gift cards and digital items from many different partners, including Starbucks , Xbox , Roblox , and others. And if you are feeling even more lucky, the Microsoft Rewards program also runs sweepstakes from time t...

[MS] Now in public preview: Mirroring Azure Cosmos DB in Microsoft Fabric - devamazonaws.blogspot.com

Image
This blog is co-authored by Rodrigo Souza. We are excited to announce that mirroring Azure Cosmos DB databases in Microsoft Fabric is now available to all customers . You can seamlessly bring your databases into Microsoft OneLake, enabling no-ETL, near real-time insights on your data. Many organizations want to transform their businesses by reacting quicker to any changes in their business environment or market conditions in real time.  Bringing their data together, which is distributed across cloud and on-premises, can often be complex and difficult to manage. They need complex processes to analyze this data without impacting mission-critical workloads. As a result, this increases overall latency to access the data, leading to frequent delays in generating critical business insights, often by hours. Mirroring empowers you to bring data from various sources such as Azure Cosmos DB, Azure SQL Database, Snowflake into Microsoft OneLake, without the need for complex ETL pipelines....

[MS] Dubious security vulnerability: Manual operations can cause a program to hang - devamazonaws.blogspot.com

A security vulnerability report came in that went roughly like this: Copy a huge amount of text to the clipboard, like a half a gigabyte. Run the XYZ program and paste it all. The program crashes. This is a denial of service against program XYZ. A photo of the crash is attached. First of all, the claim that the program crashes is incorrect. The photo shows that the cursor is a spinning donut, and the title bar says "(Not Responding)". The program hasn't crashed. It has stopped responding, probably because it's busy trying to process a half-gigabyte of data. But, presumably, if you wait long enough, it will eventually finish (or run out of memory). While it's true that this could be considered a denial of service against program XYZ, it's entirely self-inflicted. You chose to paste half a gigabyte of data into program XYZ, so you get to wait for it to finish. Besides, if you wanted to launch a denial-of-service attack against program XYZ, there's a much...

[MS] 从 Azure 部署生成本地 .NET 密钥  - devamazonaws.blogspot.com

Image
  本文翻译于Frank Boucher的 Generate Local .NET Secrets from Azure Deployments . 通常,示例项目以一些 “ 魔术字符串 ” 开始,这些变量包含与部署或外部资源相关的 URL 和关键信息,我们必须更改这些信息才能使用示例。例如在 .NET 中,它可能如下所示:   string openAIEndpoint = "https://"; string openAIDeploymentName = "my-ai-model"; string openAiKey = "123456abcd789EFGH"; // ... 本文展示了如何从 Azure 部署自动生成 .NET 密钥以及您的 .NET 应用程序如何读取这些密钥 。 用户想要尝试使用您的示例时,将不必再编辑任何内容! 他们只需使用 azd up 进行部署,然后使用 dotnet run 来执行应用程序。 听起来很有趣? 下面就来实现一下 。   整个项目的代码可以在 GitHub 上的 fboucher/ hikerai 中找到 。   准备工作   Bicep 是一种为要部署的 Azure 资源创建基础结构定义的语言。由于这些资源将包含端点或模型名称等信息,因此我们需要一种导出这些信息的方法,在 Bicep 中我们使用输出语法 :   // some bicep deployment... output AZURE_OPENAI_ENDPOINT string = ai.outputs.AZURE_OPENAI_ENDPOINT output AZURE_OPENAI_GPT_NAME string = ai.outputs.AZURE_OPENAI_GPT_NAME output AZURE_OPENAI_KEY string = ai.outputs.AZURE_OPENAI_KEY 使用 Azure Developer CLI (azd) 命令 azd env get-values 返回键对值列表中的所有这些值。 PowerShell 或 Bash 脚本可以读取这些内容并使用命令 dotnet ...