click – Devstyler.io https://devstyler.io News for developers from tech to lifestyle Wed, 19 Jan 2022 15:42:40 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 Microsoft released an OOB update https://devstyler.io/blog/2022/01/19/microsoft-released-an-oob-update/ Wed, 19 Jan 2022 15:42:40 +0000 https://devstyler.io/?p=79299 ...]]> An out-of-band update was released by Microsoft. Its aim was to fix some issues which were caused by last week’s monthly patching cycle on Patch.

Some security reconstructions were provided in the January update in Windows 11 and Windows 10. However, unexpectedly there were problems such as restarting the Domain Controller and VPN connections using L2TP failing.

The biggest problem was being stuck in a boot loop of Windows Server 2012 while some other versions experienced broken Windows VPN clients. Not only that but some hard drivers appeared as RAW format or unusable. A major number of IT admins were obliged to return the previous updates and that action caused many servers to be vulnerable.

IT admins are provided with access to Microsoft’s update catalog which gives them an opportunity to load into Windows Server Update Services. However, the admins are in a situation where they have to manually download and load the OOB update as it is not included in the WSUS catalog. On Twitter, Windows Update’s page posted: 

“An out-of-band update has been released to address issues related to VPN connectivity, Windows Server Domain Controllers restarting, Virtual Machine start failures, and ReFS-formatted removable media failing.”

However, if you click the Windows Update icon on your computer, you may find some of these fixes available for Windows 11 and Windows 10 as an optional update.

]]>
Instagram introduced a New Feature https://devstyler.io/blog/2021/12/15/instagram-introduced-a-new-feature/ Wed, 15 Dec 2021 13:39:22 +0000 https://devstyler.io/?p=76769 ...]]> There is no doubt that Instagram is one of the most used social media these days. In order to provide the best experience to its users, the platform is constantly working on new updates, features and options. A new feature was introduced by the company. It allows users to reply with reels on their Instagram comments. It will also let people add a sticker of a comment on a new reel they have posted. However, it will not allow users to comment on a post directly with a reel but with a sticker for regular posts, which color they can change.

How to reply with a reel? The first step, needed to try out the new feature, is to post a reel on your Instagram account. If someone replies with a reel, you can send a reply by making another reel. A pop-up will ask you how you would like to reply, when you click on the ‘Reply on a comment’ button. Then users can tap on the blue reels button in order to create a video reply. On the other hand, the video reply will be pinned to the comment just like any other reply and it will be seen by other users. While introducing its new feature, Instagram said:

“We love the communities that creators have built on Instagram. That’s why we’re excited to launch reels visual replies,”

Recently, Indian users were provided with one more feature which allows them to add music on their feed, except on their stories or reels. If they want to add music to their posts, they can click on the Add Music option which will be visible to them while posting the picture. They can search for specific songs, as well as, choose its length of time.

]]>
How to Work with Azure Queue Storage in C# https://devstyler.io/blog/2021/08/06/how-to-work-with-azure-queue-storage-in-c/ Fri, 06 Aug 2021 14:28:33 +0000 https://devstyler.io/?p=64223 ...]]> A queue is a data structure that works on a FIFO (first in first out) basis. Items are inserted at the rear of the queue and removed from the front. The term “Enqueue” denotes the operation that inserts data in the queue, while the term “Dequeue” denotes the removal of data from the queue.

Azure supports two types of queues: the Azure Storage queues and Azure Service Bus queues.

To work with the code examples, you should have Visual Studio 2019 installed in your system.

Create a console application project in Visual Studio

First off, let’s create a .NET Core console application project in Visual Studio. Assuming Visual Studio 2019 is installed in your system, follow the steps outlined below to create a new .NET Core console application project in Visual Studio.

  • Launch the Visual Studio IDE.
  • Click on “Create new project.”
  • In the “Create new project” window, select “Console App (.NET Core)” from the list of templates displayed.
    Click Next.
  • In the “Configure your new project” window shown next, specify the name and location for the new project.
  • Click Create.

What is Azure Queue Storage?

Azure Queue Storage is a Microsoft Azure cloud service that enables you to store vast numbers of messages for processing. You can take advantage of authenticated HTTP or HTTPS calls to access messages from anywhere in the globe in a secure manner. The maximum size of a queue message is 64 KB. A queue in Azure Queue Storage can store huge numbers of messages (even millions), up to a maximum storage capacity of 200 TB.

Like your other Azure Storage data objects, including blobs, files, and tables, your queues are stored in your Azure Storage account. The Azure Storage account gives you a distinct namespace for your Azure Storage data, which you can access over HTTP or HTTPS from anywhere on the world.

Install the Azure.Storage.Queues NuGet package

To work with Azure Queue Storage, you should install the Azure.Storage.Queues NuGet package into your project.

You can install this package from the NuGet package manager or by running the following command in the package manager console window.

Create an Azure Queue Storage client

If you don’t already have an Azure Storage account, you should create one using the Azure Portal or Azure PowerShell or Azure CLI. Then copy the connection string and the account access keys because you’ll need them to connect to your Azure Storage account.

Send and receive messages using Azure Queue Storage

The following code snippet illustrates how you can send messages using Azure Queue Storage.

Add a message to a queue in Azure Queue Storage

You can add a message to queue in Azure Queue Storage using the SendMessage method.

]]>
What’s New From Python: May 2021 https://devstyler.io/blog/2021/06/02/what-s-new-from-python-may-2021/ Wed, 02 Jun 2021 14:26:13 +0000 https://devstyler.io/?p=53190 ...]]> May was a month of big events. The Pallets Projects, home to popular frameworks like Flask and Click, released new major versions of all six of its core projects. The Python Software Foundation (PSF) hosted PyCon US 2021, a virtual conference that delivered an authentic in-person experience.

Pallets Releases New Major Versions of All Core Projects

Two years of hard work from the Pallets team and its many open source contributors has culminated in the release of new major versions for all six of its core projects:

  • Flask 2.0
  • Werkzeug 2.0
  • Jinja 3.0
  • Click 8.0
  • ItsDangerous 2.0
  • MarkupSafe 2.0

All six projects have dropped support for Python 2 and Python 3.5, making Python 3.6 the minimum supported version. Previously deprecated code has been removed, and some new deprecations have been added.

Some of the major changes affecting all six projects include:

  • Renaming the default branch to main
  • Adding comprehensive type annotations that make type checking user code more useful and provide better integrations with IDEs
  • Using tools like pre-commit, Black, and Flake8 to enforce a consistent style across all of the codebases and new pull requests

Besides the sweeping changes listed above, individual projects have several attractive new features.

Jinja Gets Improved Async Environments

asyncio support in Jinja 2.x required a patching system as well as some caveats developers needed to keep in mind.

One of the reasons for this is that Jinja 2.x supports Python 2.7 and Python 3.5.

Now that all of the Pallets projects only support Python 3.6+, the patching system was removed to provide a more natural asyncio experience for projects using Jinja 3.0.

Click Gets an Overhauled Shell Tab Completion System

Building great command-line interfaces (CLI) for an application can be a chore. The Click project helps ease this burden with its friendly API.

One of the features shell users expect from a CLI is tab completion, which suggests command names, option names, and choice values when a user types a few characters and presses Tab.

PyCon US 2021 Connects Pythonistas Around the World

Late spring is always an exciting time for Pythonistas in the United States. PyCon US, the largest annual convention devoted to Python, traditionally takes place in April or May.

This year, PyCon US was a little bit different from previous conferences. Originally slated to take place in Pittsburgh, Pennsylvania, PyCon US 2021 transitioned to an online-only event due to the COVID-19 pandemic.

What’s Next for Python?

May was an eventful month for Python. At Real Python, we’re excited about Python’s future and can’t wait to see what new things are in store for us in June.

]]>