teleren/devto huggingface dataset:
Creating Resource group and Virtual machine using Command-line interface (CLI) in Azure
Published: 2023-05-03 06:33:12

**Definition**
Azure command-line interface (Azure CLI) is a different approach  of creating Virtual Machine in Azure other than PowerShell. Note that the Azure CLI is a command-driven scripting environment like  PowerShell that also uses the Azure REST API to execute management tasks in Azure. Approximately identical to Azure PowerShell in capability and function, running on Windows, Linux, and Mac.
Like Azure PowerShell, you can run the Azure CLI in a web browser through the Azure Cloud Shell, giving one the capability to run the Azure CLI in schemes were running it natively might not be possible or feasible.
Steps to taken when using CLI to create Resource group and Virtual machine in Azure are highlighted below

Login to your Azure portal, click on the cloud shell in the Azure portal, then select Bash

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y3u5l9ylyi6ffxgxq5p3.png)
Write and paste the resource group and virtual machine scripts to create Resource group and virtual machine as shown below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5kub1v583uirf3737pps.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bqslxbghb1hp32tnx0lu.png)


The resource group and virtual machine that are created  are  shown below 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q921pde2nb5jpytrl857.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/faump82uba7rdx0im9d2.png)
The deployed VM is running 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r1ymqh5k8di3j5z7k71f.png)
pretty-fold
Published: 2023-05-02 12:49:46



This goes in: /.config/nvim/lua/user/plugins.lua (to install pretty-fold , look at lower line )

```plaintext


-- Install your plugins here
return packer.startup(function(use)
  -- My plugins here
  use 'wbthomason/packer.nvim' -- Have packer manage itself
  use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins

  -- Automatically set up your configuration after cloning packer.nvim
  -- Put this at the end after all plugins
  if PACKER_BOOTSTRAP then
    require('packer').sync()
  end


	use { 'anuvyklack/pretty-fold.nvim',
	   config = function()
	      require('pretty-fold').setup()
	   end
	}

	use { 'anuvyklack/fold-preview.nvim',
	   requires = 'anuvyklack/keymap-amend.nvim',
	   config = function()
	      require('fold-preview').setup({
		 -- Your configuration goes here.
		 --
	      })
	   end
	}


end)
```

config for pretty-fold , need to have both in order to work

and then in init.vim set this

```plaintext
set foldmethod=indent

nnoremap zf <cmd>setl fdm&<CR>zf
xnoremap zf <cmd>setl fdm&<CR>zf

lua require("user.plugins")


set foldcolumn=1



highlight FoldColumn ctermbg=235 guibg=#262626

highlight FoldColumn ctermfg=white guifg=white
```

This is how it looks. Really neat :D

![](https://imgur.com/T4bIx3l.png align="center")

![](https://imgur.com/bzB5rHH.png align="center")

So this means:

`za` : open/close the fold under the cursor

`zR` : open all folds in the file

`zM` : close all folds in the file

`zf<motion>` - define your own manual fold, defined by &lt;motion&gt;

when you step the cursor on fold line (block..)

`h` - to show a preview

`l` \- to open fold (same as `za` , but more intuitive)
Prediksi Togel Sydney - Togel Sdy
Tags: amazing, prediksi, sydney, togelsdy
Published: 2023-05-03 06:31:25

Prediksi Sydney atau yang sering orang dengan bocoran togel sdy adalah wadah untuk memberikan bocoran angka jitu hari ini, **<u>[Prediksi Sdy](https://pemudamendunia.org/)</u>** adalalah salah satu pasaran togel yang cukup populer.

## Prediksi Togel Sdy

Setiap hari angka jitu yang kami keluarkan menjadi acuan untuk para togel mania dalam meracik angka sydney yang jitu dan akurat. Hanya di https://pemudamendunia.org/
Introduction To Java
Tags: java, beginners
Published: 2023-05-03 06:15:42

**What is JAVA ?**
-> so java is an object-oriented programming language, It is high level and secure programming language.
It was developed by SUN MICROSYSTEMS in year 1995, JAMES GOSLING is known to be father of JAVA.

**Types of JAVA APPLICATIONS**
1. Standalone Java Applications: known as desktop app or window-based app. Traditional software that we have to install on every machine. Ex: Media player, antivirus. AWT and SWING are used for creating them

2. Web Java Application : app that run on server side and creates a dynamic web pages. Servlet, JSP, Spring, Hibernate etc technologies are used for creating web app in java

3. Enterprise Application : An app that is distributed in nature, such as banking app etc is called and enterprise app. It has high level security, load balancing and clustering.

4. Mobile Application : Apps that are created for mobile devices. Currently android and Java ME are used for building them.

**Simple.java**
```
class Simple{
    public static void main(String args[]){
        System.out.println("Hello Java");
    }
}
```
**Featurs of Java**

1. Simple: Its syntax is simple, clean and easy to understand.
2. Object Oriented : Everything in Java is an object.
3. Platform Independent : Java is write once, run anywhere language. 
4. Secured
5. Robust: Strong memory management, automatic garbage collection.
6. Architectural-neutral
7. Portable
8. High Performance
9. Distributed
10. Multi threaded
I Created A Web App That Went Viral On Linkedin 🔥
Tags: webdev, programming, developer, javascript
Published: 2023-05-03 05:52:37

Introducing **[Linkeder](https://linkeder.netlify.app/)** - A tool to quickly create a stunning tweet-style LinkedIn profile header (banner) to boost your personal brand 🚀

Check out the small demo video below to see how it works and visit the website to give it a try yourself 🌟

{% youtube Zr-cfaDaW-k %}

---

I must confess, the app is not perfect yet and you may encounter some bugs for some specific browsers or phone browsers & maybe some other bugs 🐛

So, do let me know if you encounter any bug/issue and I'll fix them as I go ahead. For now, I'm looking for your valuable feedback to make it even better 🤝

So, visit the application link below and give it a try for yourself and share your honest feedback in the comment section 💬

**Linkeder Link 🔗** : https://linkeder.netlify.app/

---

I recently crossed 40k Followers on **[My Linkedin](https://Linkedin.com/in/rammcodes)** because of all the amazing content that I post everyday ✨

𝗙𝗼𝗹𝗹𝗼𝘄 me on **[Linkedin](https://Linkedin.com/in/rammcodes)** for the most amazing content related to Programming & Web Development 🚀

[![Ram Maheshwari (@rammcodes) Linkedin](https://i.postimg.cc/d0w7CvZ7/www-linkedin-com-in-rammcodes-5.png)](https://Linkedin.com/in/rammcodes)

---

Please React with ❤️🦄🤯🙌🔥 
& 
Save it for later 🔖

---

Also, **Follow** me here on dev.to ✅
How to use PowerShell to create Resource group and virtual Machine in Azure
Published: 2023-05-03 05:52:15

Firstly go to Azure portal
Then click on the Azure cloud shell in the Azure portal and select PowerShell

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a9s5ouf5srijfaup9fhd.png)

Create a storage if you don’t have one. A Resource group script written to create a Resource group
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/elv2wq5xupd0whushprm.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rhpo581u8g8u05co2eix.png)


Another  script  written  for virtual machine 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3m29fyesj2xwdhy1hxpn.png)
Virtual machine deployed
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7sfs6ake1nxsggl2o209.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6dlwvy7nbyq3m9170gz0.png)
The deployed virtual machine is running


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jy9mjryfck0l4lhlak4k.png)
Browser freezing issue after upgrading angular.
Tags: angular
Published: 2023-05-03 05:47:53

After upgrading form angular 12 to 14, I am facing browser freezing issue. Can anyone help me on this?

Packages -

"dependencies": {
"@angular/animations": "^14.3.0",
"@angular/cdk": "^13.3.9",
"@angular/common": "^14.3.0",
"@angular/compiler": "^14.3.0",
"@angular/core": "^14.3.0",
"@angular/forms": "^14.3.0",
"@angular/platform-browser": "^14.3.0",
"@angular/platform-browser-dynamic": "^14.3.0",
"@angular/router": "^14.3.0",
"@cds/angular": "^6.3.1",
"@clr/angular": "13.14.3",
"@clr/icons": "13.0.2",
"@clr/ui": "13.14.3",
"@swimlane/ngx-charts": "^17.0.0",
"@webcomponents/webcomponentsjs": "^2.0.0",
"buffer": "^6.0.3",
"chart.js": "^2.9.4",
"dompurify": "^2.3.1",
"karma": "^6.3.20",
"karma-jasmine": "^4.0.1",
"keycloak-angular": "^12.2.0",
"keycloak-js": "^19.0.3",
"mutationobserver-shim": "^0.3.2",
"ng2-charts": "^2.4.2",
"rxjs": "^6.6.3",
"rxjs-compat": "^6.3.3",
"stream": "0.0.2",
"timers": "^0.1.1",
"ts-helpers": "^1.1.1",
"zone.js": "~0.11.4"
}
Integrating ESRI Maps into your React App
Tags: webdev, javascript, tutorial, react
Published: 2023-05-03 05:41:05

ESRI maps are widely used in web application development because they provide a comprehensive set of tools for creating and working with maps. React is a popular JavaScript library for building user interfaces. In this blog, we will discuss how to add an ESRI map to a React application.

## Pre-requisite:

1. Before diving into these steps, Let’s bootstrap the react application by running the following command

```bash
npx create-react-app react-esri-demo
```

## Step 1: Install @arcgis/core:

The first step is to install the `@arcgis/core`. You can install it using npm (Node Package Manager) by running the following command in your project directory:

```jsx
npm install @arcgis/core
```

## Step 2: Create a Map Component

Create a new component for your map. In this component, we will use the `@arcgis/core` to create and display the map. 

```jsx

// MapComponent.js

import MapView from "@arcgis/core/views/MapView";
import Map from "@arcgis/core/Map";

const MapComponent = () => {

  const mapDiv = useRef(null);

  useEffect(() => {
    if (mapDiv.current) {
      /**
       * Initialize application
       */
      const webmap = new Map({
        basemap: "dark-gray-vector"
      });

      const view = new MapView({
        container: mapDiv.current, // The id or node representing the DOM element containing the view.
        map: webmap, // An instance of a Map object to display in the view.
        center: [-117.1490,32.7353],
        scale: 10000000 // Represents the map scale at the center of the view.
      });
      
      return () => view && view.destroy()
  
    }
  }, []);

  return <div className="mapDiv" ref={mapDiv} style={{height: '100vh', width: "100%"}}></div>;
}

export default MapComponent;

```

**Code Explanation:**

We create a new `MapView` instance with necessary arguments and render the `MapComponent` when it succesfully mounts for the first time and destroy the `MapView` instance when the component unmounts
## Step 3: Render the Map Component

Finally, render the map component in your main application component:

```jsx
// App.js

import React, { Component } from 'react';
import MapComponent from './MapComponent';

class App extends Component {
  render() {
    return (
      <div>
        <h1>My React App</h1>
        <Map />
      </div>
    );
  }
}

export default App;

```

Now run yarn start in your terminal and open the localhost:3000 in your browser and see the magic 🎉

![Final Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1v25a9bjk85fdsmcz2q4.png)


## Conclusion:

Thank you for reading. I hope it was helpful, and let me know your thoughts in the comments. Also, if you would like to connect, I am available on **[Twitter](https://twitter.com/karthik_coder)**.

Happy Hacking 🚀.

See you, everyone, in my next blog 👋.

![conclusion](https://media.giphy.com/media/lOJKLVYkNDWN8GoPoA/giphy.gif)
Server-Side Rendering in React
Published: 2023-05-03 05:34:53

**Server-side rendering (SSR)** is the process of rendering a web page on the server before sending it to the client's browser. This has many benefits, including faster initial **load times, better SEO, and improved accessibility**. In this blog post, we'll take a look at how to implement server-side rendering in a React application.

**Why Server-Side Rendering?**

React applications are typically built using **client-side rendering (CSR)**, where the initial HTML is generated by JavaScript running in the browser. This means that search engines and social media crawlers may not be able to properly index your website, and users with slow internet connections may experience long load times. Server-side rendering can address these issues by generating the initial HTML on the server and sending it to the client's browser. This provides a faster initial load time and ensures that search engines and social media crawlers can properly index your website.

**Implementing Server-Side Rendering in React**

To implement server-side rendering in a React application, you'll need to use a server-side rendering framework or library. Some popular options include **Next.js, Gatsby, and React Server Components**.

For this blog post, we'll use Next.js, which is a popular framework for building server-side rendered React applications. Here's how to get started:

**1.Install the Next.js package:**


```
npm install next react react-dom
```
**2.Create a pages directory in your project root and create a new file called index.js:**

```
// pages/index.js
import React from 'react';

export default function Home() {
  return (
    <div>
      <h1>Welcome to my React app!</h1>
    </div>
  );
}

```
**3.In your package.json file, add the following scripts:**

```
"scripts": {
  "dev": "next dev",
  "build": "next build",
  "start": "next start"
}
```
**4.Run the application in development mode:**
```
npm run dev
```
You should now be able to see your React application running in the browser with server-side rendering enabled. **Next.js** will automatically generate the initial HTML on the server and send it to the client's browser.

**Summary**

Server-side rendering can provide many benefits for React applications, including faster initial **load times, better SEO, and improved accessibility**. By using a server-side rendering framework or library like Next.js, developers can easily implement server-side rendering in their React applications. With server-side rendering, you can ensure that your React application is accessible to all users and optimized for search engines.
Weekly web development resources #147
Tags: webdev, javascript, css, beginners
Published: 2023-05-03 05:19:18



______


##[Neat CSS](https://neat.joeldare.com)
[![Neat CSS](https://wweb.dev/weekly/content/147/neatcss.jpg)](https://neat.joeldare.com)
A minimalist CSS framework that is easy to customize.

______


##[CSS Tip](https://css-tip.com/)
[![CSS Tip](https://wweb.dev/weekly/content/147/css-tricks.jpg)](https://css-tip.com/)
A small blog where you can learn a new CSS trick every day.

______


##[Jellylade](https://app.jellylade.com/)
[![Jellylade](https://wweb.dev/weekly/content/147/jellylade.jpg)](https://app.jellylade.com/)
A tool to turn your screenshots into beautiful posts.

______


##[Neutralinojs](https://neutralino.js.org/)
[![Neutralinojs](https://wweb.dev/weekly/content/147/neutralinojs.jpg)](https://neutralino.js.org/)
A framework to build lightweight cross-platform desktop apps with JavaScript, HTML, and CSS.

______


##[List.js](https://listjs.com/)
[![List.js](https://wweb.dev/weekly/content/147/listjs.jpg)](https://listjs.com/)
A vanilla JavaScript that adds search, sort, filters and flexibility to plain HTML lists and tables. 

______


##[Yuebing](https://github.com/cobbzilla/yuebing)
[![Yuebing](https://wweb.dev/weekly/content/147/yuebing.jpg)](https://github.com/cobbzilla/yuebing)
An open-source software for running video hosting sites.

______


##[react-voice-recorder-player](https://www.npmjs.com/package/react-voice-recorder-player)
[![react-voice-recorder-player](https://wweb.dev/weekly/content/147/react-voice-recorder.jpg)](https://www.npmjs.com/package/react-voice-recorder-player)
A React component that lets users record and playback their voice directly in the browser.

______


##[Stretch 15](https://stretch15.com/)
[![Stretch 15](https://wweb.dev/weekly/content/147/stretch15.jpg)](https://stretch15.com/)
A free 15 min daily stretch routine to help you avoid aches and pains.

______


##[Blur camera background](https://developer.chrome.com/en/blog/background-blur/)
[![Blur camera background](https://wweb.dev/weekly/content/147/blur-video.jpg)](https://developer.chrome.com/en/blog/background-blur/)
A blog post explaining the popular function in modern video conferencing applications.

______


##[iDraw.js](https://idraw.js.org/)
[![iDraw.js](https://wweb.dev/weekly/content/147/idraw.jpg)](https://idraw.js.org/)
A simple JavaScript framework for drawing on the web.

______


##[Tailwind Animations](https://github.com/canopas/tailwind-animations)
[![Tailwind Animations](https://wweb.dev/weekly/content/147/tailwind-animations.jpg)](https://github.com/canopas/tailwind-animations)
A repository that contains different animations implemented using tailwind CSS.

______

_Enjoyed this newsletter? You can support me by:_

💸 booking a [sponsored post](https://wweb.dev/sponsorship)

🥷 donating via [Sponsor Ninja](https://app.sponsor.ninja/projects/63d7dd38d907a8ed61dca67f)

🚀 helping me grow by sharing it with your friends and colleagues


Cheers,
Vincent from [wweb.dev](https://wweb.dev)
Top 6 Android App Development Trends to Watch in 2023
Tags: android, app, development, trends
Published: 2023-05-03 05:12:50

Did you know? The number of smartphone mobile network subscriptions worldwide is growing at an unprecedented rate.
In fact, research by experts has found that there are nearly 6.6 billion subscriptions as of 2022, and we anticipate this number will reach 7.8 billion by 2028.
With such a vast and rapidly expanding user base, there is no doubt that there will be an enormous demand for apps. In short, as the mobile app market grows, businesses will need to create apps for both Android and iOS platforms.
Now, if your business requires an Android app, it means your target audience primarily uses Android devices. Therefore, your focus should be on Android app development.
We understand this can be confusing, so we've compiled a list of the top 6 Android app development trends to watch out for in 2023.
**Instant App**
Instant apps are small, lightweight versions of full apps that can be accessed without downloading them. They provide a quick and easy way for users to try out an app before deciding whether to download it. You can use this Android app development trend to improve user engagement and reduce app abandonment rates.
**AI and ML**
AI and ML have been buzzwords for a while now, but in 2023, they will take center stage in Android app development. The introduction of generative AI technology is gaining huge popularity among users because of its potential to create realistic videos, text, and images. Therefore, AI and ML will enable apps to become more intelligent and intuitive, providing personalized content and recommendations to users.
**Blockchain Integration**
Blockchain is a decentralized ledger that's used in cryptocurrencies such as Bitcoin. However, its uses extend far beyond just cryptocurrencies. You can make use of this technology in your Android app to offer a secure transaction process, data storage facilities, etc. Blockchain integration will be a major trend in Android app development in 2023.
**IoT Integration**
Integrating IoT functionality into their apps to provide users with more control over their surroundings. From smart homes to wearable devices, IoT integration will make our lives more convenient and efficient.
**Cloud-integrated app**
As everything is shifting toward digitalization, your app should be integrated with cloud service providers like Azure, Google Cloud Platform, etc. to give your users access from anywhere.
**VR and AR technology**
From virtual shopping experiences to augmented reality games, these technologies will provide users with unique and immersive experiences.
These are some of the trends that will continue in 2023. Kickstart your project by [hiring the best Android app developers in India](https://www.i-webservices.com/hire-android-developer).
React Stopwatch
Tags: javascript, react, beginners, tutorial
Published: 2023-05-03 05:12:09

This week I went back to basics to touch upon using hooks by building a stopwatch with react. I think this is a nice little project that can be tackled down in just a few hours and it is a good way to practice React hooks. With this stopwatch, you can start the time stop the time and reset. Let’s get started and look at the code.

We are going to remove all of the files in the src folder except for App.css, App.js and index.js and remove all the imports. We will be using the state and effect hooks. This is what our initial component will look like.


![Initial Component](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j682xa9rk17foz30zgvt.png)

Great so now we have to display our time. We are going to start by displaying the milliseconds. Let’s start by building our useEffect. First our interval will be defined and if start is true the timer will start, otherwise we will clear interval. In useEffect’s second argument we are going to pass in an array with start. This means that our effect will run when start state changes. We will also add a return statement for cleanup. Finally we will have a button that will start the time once it is clicked. This is what that will look like.


![Displaying Time](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/as48e309mvut7oqockza.png)

Now our time will start counting up. As of now there is no way to stop or reset the stopwatch. We also need to format what is displayed so that the number’s look correctly. There is a nice trick to doing this. First we will divide the time by 10 because that is the value of a millisecond then modulo 1000. Now we will append this to a zero so that when the time starts there will be a zero already instead of just one digit. Finally we will slice and pass in a parameter of -2 so that when the number becomes two digits the zero will be removed. This is what that will look like.


![Time Format](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3nngpc5ahrandanoq0fu.png)

Now the number displayed will make more sense. Finally what we need to do is show the seconds, minutes and create the stop and reset buttons. Creating the minutes and seconds is really similar to what we did with the milliseconds. We can copy and paste and make some changes. Instead of using module by 1000 we will do it by 60. Another thing we will have to do is round the numbers down since the decimal numbers will be displayed if we leave it as is. The buttons are also really similar to the one that we have already. For example we will set the start state to false in the stop button. For the reset button we will set the time to 0 and also set start to false. This is what our finished stopwatch will look like.


![Finished Stopwatch](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mkkmobju02izjity1ca3.png)

This is a nice way to practice some fundamentals like hooks. These same techniques can be used to create other similar projects like a timer or clock. It was super fun building this and it didn’t take that long to do. Hope you have as much fun as I did. Happy coding! 😎