Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

How to upgrade your Flask application using async

Categories

Tags python app-development web-development

Long before Python 3, and ChatGPT, and TikTok, poor developers had to write their web servers using shudders Python 2 native features. This meant no asynchronous operations. The frameworks that arose from this era proliferated and became cornerstones of web development. There might even be a synchronous Python web server showing you this text right now. But things change, and with Python 3’s native support of asynchronous operations came a new standard - Asynchronous Server Gateway Interface (ASGI). By vidavolta.io.

The article then explains:

  • First things first - the synchronous approach
  • Asynchronous web servers

Asynchronous web servers are fundamentally different in how they handle requests and concurrency. They will run a main process - essentially a task manager, that schedules requests to be executed. The key distinction here is that tasks will return control to the task manager when they need to wait for asynchronous work - like in the case of an expensive network call.

We explored synchronous and asynchronous Python web servers and showed that for heavily IO/Network bound workloads, the (relatively) newer ASGI compliant web servers can be far more performant than WSGI servers.Interesting read!

[Read More]

How GitHub Copilot is getting better at understanding your code

Categories

Tags devops app-development machine-learning big-data data-science

With a new Fill-in-the-Middle paradigm, GitHub engineers improved the way GitHub Copilot contextualizes your code. By continuing to develop and test advanced retrieval algorithms, they’re working on making our AI tool even more advanced. By github.blog.

To pull back the curtain, we asked GitHub’s researchers and engineers about the work they’re doing to help GitHub Copilot improve its contextual understanding. Here’s what we discovered:

  • From OpenAI’s Codex model to GitHub Copilot
  • Why context matters
  • How GitHub Copilot understands your code
  • Improving semantic understanding

The GitHub product and R&D teams, including GitHub Next, have been collaborating with Microsoft Azure AI-Platform to continue bringing improvements to GitHub Copilot’s contextual understanding. So much of the work that helps GitHub Copilot contextualize your code happens behind the scenes. Interesting read!

[Read More]

A brief history of MicroStack

Categories

Tags devops app-development cloud software-architecture

OpenStack is no doubt a wonderful and successful piece of software. It allows you to create your own cloud infrastructure, and thanks to its open-source nature, it’s free to use for everyone. By Andre Ruiz.

But as with many giant software projects, all that power comes with a challenge: it is reasonably complex to install and configure. A number of OpenStack distributions do exist that intend to make engineers’ life a lot easier, but those also tend to be more complex than a non-experienced user would like them to be.

Canonical MicroStack is an open source project that enables you to easily deploy a fully-functional OpenStack environment on your workstation or even a virtual machine (VM) in minutes. Even though it was originally designed with testing and development use cases in mind, eliminating the need for dedicated hardware, it is now heading towards its first stable release. This means that it will soon be suitable for production use cases too. To learn more follow the link to full article. Nice one!

[Read More]

Why Ethereum is still the home of DeFi

Categories

Tags blockchain cio miscellaneous learning crypto fintech

Ethereum is the 2nd largest blockchain by market cap behind Bitcoin, and thus the largest smart contract blockchain, so it’s no surprise that Ethereum’s blockchain supports the largest portion of assets locked in DeFi protocols, with about $27b of assets locked. By @ultimate.app.

The article then points at few statistics and observations:

  • Ethereum is a model for fair token distribution
  • Ethereum is a model for open-source, community driven development
  • Now energy efficient via Proof of Stake, Ethereum is the most economically secure blockchain
  • The investment case for ETH is linked to the Ethereum blockchain’s usage
  • L2 activity has surpassed L1 activity
  • Challenges remain around scalability, decentralization, MEV

While Ethereum has made significant progress, challenges remain. The historical lack of staking withdrawals catalyzed the growth of liquid staking, where “winner take all” effects have resulted in almost 30% of all staked ETH within the Lido protocol - not an ideal scenario for decentralization. Ethereum’s blockchain is home to the majority of the DeFi market’s TVL, $100b of stablecoins, and produces tens of millions of dollars in transaction fees every month. For more stats and charts follow the link to the full article. Interesting read!

[Read More]

How to use ChatGPT AI for smart contract development

Categories

Tags blockchain app-development bots miscellaneous learning

ChatGPT and AI have become the most exciting new technologies of the past decade. You’ve likely already seen some of the fascinating use cases of the tool like writing poems, lyrics in the style of renowned musicians, film scripts, college essays, and more. In this blog, you’ll learn how to use ChatGPT to improve your smart contract development. By Clarissa Watson.

In this article you will find information about:

  • Getting Started with ChatGPT
  • Method 1: Ask questions to ChatGPT
  • Method 2: Write smart contract code with ChatGPT
  • Method 3: Audit and test code with ChatGPT
  • Method 4: Practice code with ChatGPT
  • Explore ChatGPT with Infura to improve Dapp development

Authors have only scratched the surface with what can be done with ChatGPT and smart contract coding for dapp development. You can think of the tool as an extremely knowledgeable and helpful mentor who is able to answer almost any question you may have in your web3 journey. How interesting!

[Read More]

What is the best time to perform regression testing?

Categories

Tags tdd web-development app-development miscellaneous

When does regression occur in a software product? Whenever there is any change in the application code. Application or software development is not complete without adding new features or changing its existing code. By Geosley Andrades.

Regression testing is a form of software testing that checks if any code change or a new feature has introduced any new software regressions. This testing approach can confirm if the product is working as before with the new features and bug fixes.

The content of the article covers:

  • What is regression testing?
  • When to perform regression testing?
    • When a new feature is introduced in the product
    • After fixing a software bug
    • When integrating with an external system
    • Following a major business change
  • How to perform software regression testing

The emergence of QA automation is facilitating application development companies to improve software testing quality. Automation can make regression testing easier to execute. Besides the speed, automated testing can improve product quality. Nice one!

[Read More]

Revolutionize business websites with Copilot in Power Pages

Categories

Tags big-data cio web-development azure devops bots ai

Today at Microsoft Build, we are thrilled to share new features and capabilities for Microsoft Power Pages. Next-generation AI enhancements via Copilot in Power Pages, now in public preview (in North America only), is revolutionizing how to build and launch data-centric business websites.

This article also explains how to:

  • Create contextual chatbots in Power Pages with generative answers
  • Connect to data anywhere with virtual table and Power Automate integration in Power Pages
  • Introducing developer websites for Power Pages
  • Helping administrators securely control website data

These new Power Pages AI capabilities, low-code innovations, and sophisticated tooling to aid developers will help your business accelerate development, increasing your efficiency and speed of creating websites that scale. The possibilities are unlimited. Just think it, describe it, and Power Pages will help you build it. Good read!

[Read More]

Using Arm64EC with Windows 11

Categories

Tags miscellaneous app-development azure learning

This article demonstrates how to use Arm64EC in a C++ application. The application you will implement performs the multiplication of two pseudo-randomly generated square matrices. By Dawid Borycki.

With the advent of complex machine learning and artificial intelligence models, you need fast and energy-efficient hardware. For fast, efficient hardware, Arm has introduced an architecture used by most chips in embedded and mobile systems. It has been adopted for laptops, desktops, and servers and enables you to accelerate your applications.

Further in the article:

  • App Porting with Arm64EC
  • How It Works
  • Arm64EC in Action

The Arm64EC ABI enables transparent and direct interoperability with your existing x64 dependencies, meaning you can use x64 and Arm64EC in the same process. This is possible because Arm64EC code is compiled with the same pre-processor architecture definitions as x64 code, and the Arm64EC ABI is compatible with the X64 ABI. Consequently, you can gain performance by speeding up the computation of intense code by employing Arm architecture without porting everything simultaneously to Arm64.

This article described the Arm64EC architecture, then demonstrated how to configure the Windows Dev Kit 2023 for Visual Studio development. It also showed how to use this environment to implement a C++ application and then how to implement it on an Arm64EC device. Finally, it confirmed the performance boost by switching from x64 to Arm64EC on an Arm-powered device. Nice one!

[Read More]

Serverless API on AWS, Azure and GCP - Deployment and benchmark

Categories

Tags apis app-development azure gcp aws

In this article, author has created a serverless Express API and deployed it on AWS, Azure, and GCP to evaluate each platform’s performance. After conducting load tests using K6, I found that Azure and AWS performed comparably well (slightly better for Azure), while GCP lagged due to significant cold starts (up to 5 seconds when speaking to a Database). By AurĂ©lien BETTINI.

While creating an Express API for a personal project, I wondered if it was possible to deploy it on multiple Clouds. Having the flexibility to link my website to whichever platform offers the best service for my project would be advantageous. For example, choosing Azure if I wanted to access Azure OpenAI Service.

The article main parts:

  • Why serverless?
  • The API
  • API deployment
    • Deployment on AWS
    • Deployment on GCP
    • Deployment on Azure
  • Database deployment
  • Load testing with K6
  • Location parameter
  • Function parameters
  • K6 parameters
  • Results (/newsletter API) function + databases

On the deployment side, it was quite fun to deploy the same Serverless application on multiple Clouds. You can definitely transfer your knowledges from one to another. GCP and AWS looks really similar and deploying the app on both was pretty fast. Azure, on the other end, has some different concepts. Good read!

[Read More]

Headless WordPress with GraphQL and SvelteKit

Categories

Tags apis app-development web-development php javascript

Headless WordPress + GraphQL + SvelteKit as any other stack where you have a backend (data store), a frontend (the website), and a way to connect the two. In this case, the backend is WordPress, the frontend is SvelteKit and the way to connect the two is GraphQL. By Justin Ahinon.

This guide then will explain:

  • Why even use WordPress in headless mode?
  • How would that work?
  • Setting up WordPress
  • Creating a type-safe GraphQL client in SvelteKit

Since the visual presentation will be handled by SvelteKit, we will use WordPress to store our data; posts, pages, custom post types, custom fields, etc. There are code examples also included. Good read!

[Read More]