Posts

Showing posts from October, 2024

AWS AppSync launches new serverless WebSocket APIs to power real-time web and mobile experiences at any scale - devamazonaws.blogspot.com

We are excited to announce the launch of AWS AppSync Events, a new solution for building secure and performant serverless WebSocket APIs to power real-time web and mobile experiences at any scale. AWS AppSync Events lets you easily broadcast real-time event data to a few or millions of subscribers using secure and performant serverless WebSocket APIs, without needing to manage connections or resource scaling. Typical solutions for building real-time web and mobile applications at scale, such as periodic polling or self-managed WebSockets, result in high operational overhead, inefficiency, latency, and high costs. Developers want a simple way to publish events and subscribe to real-time updates without the complexities of deploying and managing WebSockets infrastructure. Now, with AppSync Events, you can build apps for receiving live sports score and stats, exchanging group chat messages, or getting notifications on prices and inventory levels by simply deploying an AWS AppSync Ev...

[MS] GitHub Copilot upgrade assistant for Java技术预览发布 - devamazonaws.blogspot.com

随着人工智能和大型语言模型(LLMs)的不断发展,Agent(“智能代理”)和智能代理化工作流程正在迅速成为AI领域的下一个前沿。这些自主系统带来了巨大的好处,它们可以创建计划、执行单个任务、使用外部工具、与用户互动,甚至自行修复错误。 凭借这些功能,代理化工作流程可以解决一些企业客户在开发周期中经常遇到的复杂、关键任务,甚至是一些极其繁琐的任务。对于使用Java的企业客户来说,升级JDK、框架、依赖项等一直是一个挑战。这些挑战覆盖的范围相当地广,开发者可能会需要经常面对重复且繁琐的场景,例如API签名发生变化等等。我们见过一些企业在将代码库从Java 8升级到Java 17时,花费了几天甚至几周的时间,这是一项巨大的资源和人力投入。 今天,我们很高兴宣布 GitHub Copilot upgrade assistant Java的技术预览版 。这是一个基于AI的解决方案,它使用智能代理化工作流程和多代理框架帮助您更新Java应用程序。通过安装 Visual Studio Code 插件,您可以从本地Java项目开始,GitHub Copilot将自动处理大部分升级过程。以下是该产品的一些关键功能。 创建一个智能的计划 GitHub Copilot upgrade assistant for Java 会分析您当前的项目,并提示用户输入JDK和Maven路径、分支名称等参数。点击“Start(开始)”后,工具将进一步评估该项目的依赖项,例如Spring Boot和JUnit等框架。您还可以选择生成一个GitHub Issue,记录升级过程中的任务。 您可以在执行计划前,审核即将执行的任务。以下是一个演示。 [video width="1920" height="1080" mp4="https://devblogs.microsoft.com/java/wp-content/uploads/sites/51/2024/10/plan.mp4"][/video] 可视化每一步操作 当升级开始后,工具的信息面板(Dashboard)将成为主要信息中心,您可以在此查看每个任务的实时详情,包括运行 OpenRewrite 工具的命令、查看选择的配方、审查修改的文件和错误详情、每个步骤日志等。您还可以深入探索每个...

AWS Clean Rooms launches Spark SQL support with configurable compute size - devamazonaws.blogspot.com

Today, AWS announces the launch of AWS Clean Rooms Spark SQL, offering customers the ability to run custom queries using Spark SQL. With this launch, customers can create an AWS Clean Rooms collaboration using the Spark analytics engine, and support workloads of different sizes with configurable instance types at query runtime. With AWS Clean Rooms Spark SQL, you can query large datasets with the commonly used Spark SQL dialect. AWS Clean Rooms Spark SQL provides enhanced flexibility to customize and allocate resources to run SQL queries based your performance, scale, and cost requirements. For example, customers can use large instance configurations to satisfy the performance needed for their complex data sets and queries, or smaller instances to optimize costs. This is the latest addition to the multiple analyses capabilities of AWS Clean Rooms, including SQL aggregation, list, and custom analysis rules, Clean Rooms ML, Differential Privacy, and no code analysis builder. AWS Cle...

[MS] Create Unreal Engine modules faster - devamazonaws.blogspot.com

Image
Unreal Engine modules help keep your code organized and modular. However, creating modules can be a tedious and error-prone process that involves manually editing configuration files and adding boilerplate code. Visual Studio 2022 version 17.11 comes with a new dialog to help with this process. With the new Add Module dialog, you can quickly add new modules to your project without leaving Visual Studio or manually editing configurations. How to use the Add Unreal Engine Module dialog To use the Add Unreal Engine Module dialog, you need to have an Unreal Engine project open in Visual Studio. You can do this by opening the . sln file generated by the Unreal Editor from your project folder, or by opening the Unreal Engine project directly by opening the folder containing the *.uproject file through File->Open->Folder.... Once you have your project open, right click on the project in Solution Explorer and select Add > Unreal Engine Item . This will open the Add New Item dial...

[MS] Build AI applications with the new AI App Template Gallery - devamazonaws.blogspot.com

Image
Get started building AI applications in minutes with the new AI App Template Gallery. We're thrilled to announce the launch of the AI App Template Gallery, a new resource designed to help you build and deploy AI applications. This gallery is a curated collection of ready-to-use application templates, creating a clear path to kickstart your AI projects with confidence and efficiency. This collection includes fully working applications, complete with app code, AI features, infrastructure as code (IaC), configurable CI/CD pipelines with GitHub Actions, and an application architecture, ready to deploy to Azure. The collection also includes smaller templates that are building blocks hosting just a component you need, like keyless authentication or IaC. How to deploy a template Deploying a template from our AI App Template Gallery can be done in a few steps to get started: Visit the gallery . Browse the available templates and select the one that best fits your project needs. Open...

[MS] Reverse-engineering what a “short” section is - devamazonaws.blogspot.com

There is a linker error LNK2004 that says that the "short" section is too long. What does this mean? What's a "short" section? What makes it shorter than a "long" section? You actually have enough information to figure this out. Look closely at the error message, and you'll see a big clue: gp relative fixup overflow to 'target'; short section 'section' is too large or out of range. The error message says "gp relative fixup", and "gp" is the traditional name of a dedicated register on Itanium and PowerPC that points to a module's global variables. The reach of the gp register is 4MB on Itanium and 64KB on PowerPC, and the limited reach is consistent with the "relative fixup" part of the error message. It's saying that the linker needs to fix up an indexed indirect instruction, but the offset is too large for the instruction's reach. Recall that on Itanium and PowerPC, global variabl...

Amazon Q Developer announces support for inline chat to streamline the developer experience - devamazonaws.blogspot.com

Today, Amazon Q Developer announces an enhanced chat experience that allows you to seamlessly initiate chat within the inline coding experience. With this capability, you can select a section of code that you need assistance with and initiate chat within the editor to request actions such as "Optimize this code", "Add comments", or "Write tests". With inline chat support, powered by the latest version of Anthropic’s Claude 3.5 Sonnet, Q Developer generates and displays an inline diff (set of code changes) view based on the prompt in real time, making it easy to understand and evaluate suggestions directly from your code editor. You can then use keyboard shortcuts to review and accept changes without needing to switch context between different chat panels in your IDE. This allows you to efficiently complete tasks, improving and streamlining the development process. Inline chat support is available within the Visual Studio Code and JetBrains IDEs and in ...

AWS Blu Age Runtime non managed now available in 11 more regions - devamazonaws.blogspot.com

AWS Blu Age Runtime non managed is now available in eleven additional AWS Regions. The AWS Blu Age Runtime offers a unified execution framework for Blu Age modernized applications. It empowers you to deploy modernized applications seamlessly on AWS compute infrastructure, leveraging the flexibility of pay-as-you-go billing. With the new regions, you’ll have additional options to deploy your application in the region of preference using the Release and Alpha pre-release versions to run your modernization project. The regional expansion comprises availability in Asia Pacific (Mumbai), Asia Pacific (Seoul), Europe (Stockholm), Canada (Central), Asia Pacific (Singapore), Europe (London), Asia Pacific (Osaka), and in the opt-in regions Europe (Milan), Africa (Cape Town), Europe (Spain), and Israel (Tel Aviv). These regions extend the current availability in US East (Ohio, N. Virginia), US West (N. California, Oregon), Asia Pacific (Sydney, Tokyo), Europe (Frankfurt, Ireland, Paris), and...

[MS] Diving into Function Calling and its JSON Schema in Semantic Kernel .NET - devamazonaws.blogspot.com

Diving into Function Calling and its JSON Schema in Semantic Kernel .NET Function-calling  is one of the most exciting features of certain Large Language Models (LLMs), enabling developers to execute code directly in response to user queries. In Semantic Kernel, we streamline the process by allowing you to use built-in plugins or integrate your own code with ease. Today, we’ll explore how Semantic Kernel creates a function-calling JSON schema—a critical component that helps the model determine which function to invoke in various contexts. For those unfamiliar, function-calling refers to running local code, often on a user's machine or within their deployment, to satisfy a user's query to an LLM. If you’ve ever asked an LLM to perform math calculations without the code interpreter, you might have noticed it sometimes produces inaccurate results. Since LLMs generate responses based on probabilistic models, the outcome may not always be correct for operations like large number ad...

[MS] Easily add Unreal Engine classes to your C++ project - devamazonaws.blogspot.com

Image
Visual Studio 2022 v17.11 introduces a new Add Unreal Engine Class dialog that lets you easily add common Unreal Engine classes to your project. You can also choose to which module to add your class, so you can keep your code organized and modular. To use this feature, you need to have an Unreal Engine project open in Visual Studio. Right click on the project in Solution Explorer and select Add > Unreal Engine Item . In the Add New Item dialog, select Unreal Engine Common Classes to open the Add Unreal Engine Class dialog. This dialog shows you a list of common Unreal Engine classes that you can use as a base for your new class. Once you select a base class, you can enter the name of your new class. You can also specify the module to which Visual Studio should add your class. When you click OK , Visual Studio will generate the header and source files for your new class and add them to your project. You can then open the files and start writing your code. Benefits of using the A...

[MS] How useful is the hint passed to the std::unordered_… collections? - devamazonaws.blogspot.com

A little while ago, we learned about the value of the hint to the C++ ordered associative containers std:: map , std:: multimap , std:: set , and std:: multiset . But what about the unordered associative containers std:: unordered_ map , std:: unordered_ multimap , std:: unordered_ set , and std:: unordered_ multiset ? The answer varies by implementation. For Microsoft's STL, the hint is used by _Find_ Hint :¹ If the hint's key is equivalent to the inserted item's key, then we keep the hint. Otherwise, we ignore it. For containers that do not permit duplicate keys, a matching hint provides the exact node to update, avoiding the need to do a search for it. The code can just update the value or do nothing, depending on the method being implemented: insert does nothing, whereas insert_or_assign updates the value. For containers that allow duplicate keys, a matching hint is used to insert the new element without performing a search. The clang libcxx implementations outrig...

AWS Storage Gateway is now available in AWS Asia Pacific (Malaysia) Region - devamazonaws.blogspot.com

AWS Storage Gateway expands availability to the AWS Asia Pacific (Malaysia) Region enabling customers to deploy and manage hybrid cloud storage for their on-premises workloads. AWS Storage Gateway is a hybrid cloud storage service that provides on-premises applications access to virtually unlimited storage in the cloud. You can use AWS Storage Gateway for backing up and archiving data to AWS, providing on-premises file shares backed by cloud storage, and providing on-premises applications low latency access to data in the cloud. Visit the AWS Storage Gateway product page to learn more. Access the AWS Storage Gateway console to get started. To see all the Regions where AWS Storage Gateway is available, please visit the AWS Region table .   Post Updated on October 25, 2024 at 06:00PM

[MS] How can I explicitly specialize a templated C++ constructor, follow-up notes - devamazonaws.blogspot.com

A brief follow-up on How can I explicitly specialize a templated C++ constructor? , which pedantically should probably have been titled something like "How can I explicitly instantiate a templated C++ constructor?" but what's done is done. Our solution was to use the in_ place_ type type-holder class to specify what type of object the object manager should contain: struct ObjectManager { // Concrete should derive from CommonBase template<typename Concrete , typename...Args> ObjectManager(int reason, std::in_place_type_t<Concrete>, Args&&...args) : m_base(std::make_unique<Concrete>( *this, std::forward<Args>(args)...)) { m_base->initialize(reason); } std::unique_ptr<CommonBase> m_base; }; We could also apply the "give it a name" principle to the problem and offer a factory method, which is easier to instantiate with an explicit type. struct Ob...

[MS] Automate Power Platform Environment Creation & Solution Imports with GitHub Actions - devamazonaws.blogspot.com

Automate Power Platform Environment Creation & Solution Imports with GitHub Actions Automating your CI/CD pipeline for Power Platform solutions can streamline your development process and reduce manual tasks. By integrating GitHub Actions, you can automatically create environments, import solutions, and even clean up environments when issues arise. This blog post will walk you through a step-by-step guide on how to achieve these goals effectively. Introduction In this blog, we will explore how to automate the creation of Power Platform environments and the import of solutions using GitHub Actions. This approach not only eliminates repetitive manual tasks but also helps maintain cleaner environments and streamline deployments. By following this guide, you will set up a robust pipeline that dynamically creates new environments and imports your Power Platform solution each time you push a new change to your repository. Prerequisites Before diving into the setup, ensure you have ...

[MS] Microsoft 365 Certification control spotlight: Security incident response - devamazonaws.blogspot.com

Security incident response is the process of identifying, containing, analyzing, and resolving security incidents that may compromise the confidentiality, integrity, or availability of an organization's information assets. Security incidents can range from unauthorized access, data breaches, malware infections, denial-of-service attacks, to insider threats, among others. For app developers, security incident response is essential to swiftly identify and address threats, reduce harm to customers and their reputation, meet compliance requirements, and enhance security practices and resilience. Security incident response is not a one-time event, but a continuous cycle that involves planning, preparation, and improvement. App developers need to have a clear and documented security incident response plan that defines the roles and responsibilities, procedures, communication channels, escalation paths, and reporting requirements for handling security incidents. A security incident respon...

[MS] Join the Microsoft 365 Copilot: Developer Camp - devamazonaws.blogspot.com

📅 Date: November 07, 2024 | 🕘 Time: 9:00 AM - 10:30 AM (PT) | 📍 Virtual Live Event: https://aka.ms/copilotdevcamp/live We're thrilled to announce Microsoft 365 Copilot: Developer Camp 2024 – an exciting live event designed to inspire and empower developers to build next-generation Microsoft 365 Copilot Agents. We are inviting you in this adventure to learn directly from the experts behind Microsoft's developer tools and have some fun together. During this 90-minute live event, we'll dive deep into building Copilot Agents and explore the possibilities they bring to the Microsoft 365 ecosystem. We’ll cover everything from declarative agents to custom engine agents, alongside games, doodles, in studio interviews and panel discussions with the leaders shaping the future of developer tooling at Microsoft. [embed]https://www.youtube.com/watch?v=l4bCs34T6qM[/embed] Tap Into the World of Copilot Agents Whether you’re a seasoned developer or just getting started with Mic...

[MS] Upgrade Your Windows Forms .NET Projects to the Latest .NET Version for Enhanced Security - devamazonaws.blogspot.com

Image
Each release of .NET introduces a host of new features and bug fixes that enhance both performance and security. To leverage these benefits both service and desktop application developers must upgrade their applications to the latest .NET versions. Just like other developers wanting to take advantage of the latest .NET enhancements, we are actively upgrading the Windows Forms (WinForms) Out-of-Process Designer used for .NET application design. This upgrade will enhance the safety of the Designer and motivate WinForms developers to update their applications for improved security. However, upgrading the WinForms Designer to a newer .NET version means it will no longer support designing forms in projects targeting older unsupported .NET versions. This means developers too will need to update their projects to supported .NET runtimes in order to design their forms in Visual Studio. It is Time to Upgrade! Upgrading the WinForms Designer and your applications to newer .NET versions not onl...

[MS] Specify runtime requirements in app manifest: Your key to success across Microsoft 365 - devamazonaws.blogspot.com

Image
Specify Runtime Requirements in App Manifest: Your Key to Success across Microsoft 365 Hosts Through extensive user research, we've identified what M365 users value most for boosting productivity. They want uninterrupted workflows, an all-in-one workspace, and minimal context switching. With this insight, we evolved Microsoft 365 into a unified platform across Teams, Outlook, M365 app (formerly Office.com), and more. For you as a developer, this means broader user reach without needing to rewrite code for each host. For IT admins, it’s about centralized app management. That's why with manifest version v1.13+, apps will now automatically appear across multiple M365 hosts , making development smoother and more impactful. [caption id="attachment_23261" align="alignnone" width="952"] With the manifest version 1.13+ your app works across Microsoft 365.[/caption] Here's an example of how this new app experience would work: Picture two users, Kat an...

[MS] How do I create a Windows Runtime IRandom­Access­Stream around a bunch of bytes or a classic COM IStream? - devamazonaws.blogspot.com

There are some Windows Runtime methods which expect a random access stream in the form of a IRandom­Access­Stream . On the other hand, you might have your data in the form of a memory block. For example, you might have a memory block that represents a bitmap, and you want to wrap it in a IRandom­Access­Stream so you can use it as a Svg­Image­Source . One option is to create an In­Memory­Random­Access­Stream and use the Write­Async() method to write the bytes (in the form of an IBuffer ), then rewind the stream back to the start. // C++/WinRT winrt::Buffer BufferFromBytes(winrt::array_view<uint8_t> bytes) { winrt::Buffer buffer(bytes.size()); memcpy(buffer.data(), bytes.data(), bytes.size()); buffer.Length(bytes.size()); return buffer; } winrt::IAsyncOperation<winrt::IRandomAccessStream> BytesToRandomAccessStream(winrt::array_view<uint8_t> bytes) { winrt::InMemoryRandomAccessStream stream; co_await stream.WriteAsync(BufferFromBytes(by...

[MS] Get Hands-On with Visual Studio, .NET, AI, and More at Live! 360 next month. - devamazonaws.blogspot.com

Visual Studio LIVE! Orlando 2024 November 17-22 | Loews Royal Pacific Resort, Orlando, FL We’re only four weeks away from the final Visual Studio Live! event of the year, and we’re close to capacity! Live! 360 Orlando offers something for everyone—whether you’re a developer, IT professional, data specialist, or cybersecurity expert. You’ll have the opportunity to learn from industry leaders while networking with peers who share similar roles. Packed Hands-On Labs and Workshops The week kicks off and wraps up with two full days of hands-on labs and workshops, featuring top experts like GitHub's Brian Randell and Mickey Gousset, along with Microsoft’s own James Montemagno and Jon Galloway. Learn directly from MVPs and seasoned professionals to deepen your technical skills in real-world scenarios. Over 300 Sessions Across 40 Tracks Live! 360 Orlando is one of the most hands-on, knowledge-packed events of the year, featuring over 300 sessions spread across 40 tracks. Whether you’re ...

[MS] .NET MAUI Welcomes Syncfusion Open-source Contributions - devamazonaws.blogspot.com

Image
Today, Syncfusion announced their dedication as contributors to .NET MAUI and released the Syncfusion Toolkit for .NET MAUI , a set of free, open-source controls for .NET MAUI! Syncfusion is a leader in UI controls and components and have some impressive controls for .NET. Today they made 14 of these UI controls freely available for .NET MAUI developers. These controls are available in the syncfusion/maui-toolkit repository on GitHub as well as a NuGet package Syncfusion.Maui.Toolkit which you can use in your .NET MAUI projects today. To get started now with these controls, add the NuGet package to your project. <PackageReference Include="Syncfusion.Maui.Toolkit" Version="1.0.1" /> You can then initialize the controls in the project MauiProgram . public static class MauiProgram { public static MauiApp CreateMauiApp() { return MauiApp .CreateBuilder() .UseMauiApp<App>() .ConfigureSyncfusionToolkit() .Build(); } } Then includ...

[MS] Debug CMake Scripts on Linux with Visual Studio - devamazonaws.blogspot.com

Image
If you are working on a CMake project that targets Linux, you may have encountered some challenges when trying to debug your CMake scripts and CMakeLists.txt files. You may have wondered why your variables are not set correctly, or why your custom commands are not executed as expected. Or you may have simply wanted to step through your CMake scripts and see what is happening behind the scenes of the configure step. We are excited to announce that the CMake debugger in Visual Studio now has support for CMake projects targeting Linux via WSL or SSH. The CMake debugger allows you to debug your CMake scripts and CMakeLists.txt files using the familiar Visual Studio debugger experience. You will need CMake version 3.27 or greater installed on your remote Linux machine to have access to the CMake debugging feature. How to use the CMake debugger Using the CMake debugger is straightforward in Visual Studio. All you need to do is set a breakpoint in your CMakeLists.txt file or any .cmake s...