teleren/devto huggingface dataset:
#Tip – How to create a 30 days trial account to learn about #PowerPlatform
Tags: englishpost, powerplatform, trial
Published: 2022-09-14 13:22:34

---
title: #Tip – How to create a 30 days trial account to learn about #PowerPlatform
published: true
date: 2022-09-08 14:39:31 UTC
tags: EnglishPost,EnglishPost,PowerPlatform,Trial
canonical_url: 
---

Hi !

The Power Platform Bootcamp is on, and one of the most popular questions is:

#### How to create a trial account to test and learn ?

The answer is easy in 2 steps.

## 2 Steps to create a Trial Account

1st step. Sign up for a Microsoft 365 developer tenant:

[https://developer.microsoft.com/en-us/microsoft-365/dev-program](https://developer.microsoft.com/en-us/microsoft-365/dev-program)

Once you created your M365 Dev Account, you will have access to 25 test users. In example:

![Sample Users to Test Power Platform](https://brunocapuano.files.wordpress.com/2022/09/sample-users-to-test-power-platform.png?w=1024)

2nd Step. Use one of these emails to sign up for the power platform developer plan:

[Power Apps Developer Plan | Microsoft Power Apps](https://powerapps.microsoft.com/en-us/developerplan/)

And that’s it !

## Additional Notes

And important, in the 1st step you can use any email account. In example @outlook.com or @gmail. You may need to sign using that email addres.

![](https://brunocapuano.files.wordpress.com/2022/09/sign-to-dev-program-with-gmail-account.png?w=535)

And this process is not very user friendly. The captcha took some time. For me, it worked fine in Edge.

Once I created the account, I was ready to sign to the Microsoft 365 Dev test subscription.

![Your microsoft 365 Dev Test Subscription.](https://brunocapuano.files.wordpress.com/2022/09/image.png?w=743)

This will create a complete test environment with +20 users. In the 1st image of this post, I shared some of these users. We can now use those email addresses to request a Power Apps Developer Plan.

![](https://brunocapuano.files.wordpress.com/2022/09/image-1.png?w=1024)

_ **Important:** to request the Dev Plan we should not use the gmail account._

This plans allows you to get a free developer environment to develop and test apps, including support for premium and custom connectors, Dataverse, and additional developer environments.

- **Power Apps** —Create and test unlimited apps with Dataverse and premium connectors.
- **Power Automate** —Automate workflows between applications and services.
- **Dataverse** —Build a data model that all your apps can use.
- **Connect Your Data** —Connect to data sources using connectors or with Custom APIs.
- **Pick your tool** —Use Power Apps, Power Automate, Dataverse, Visual Studio, Visual Studio Code, and Azure services to create the solutions you need.

Cool and easy !

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

* * *
Aligning text horizontally and vertically with PHP GD
Tags: php, gd, programming
Published: 2022-09-08 14:14:49

Let's draw text on `400x300` image as example.

## Horizontal center align

```php
$im = imagecreatetruecolor(400, 300);

$c_black = imageColorAllocate($im, 0,0,0);
$c_green = imageColorAllocate($im, 46,204,64);
$text = 'Hi';

$font = '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf';
$p = imagettfbbox(40, 0, $font, $text);

imagettftext($im, 40, 0, (400 - $p[2])/2, 100, $c_green, $font, $text);
imagePng($im, '/tmp/image.png');
```

We use `(400 - $p[2])/2` to calculate `x` coordinate so our text is centered horizontally. [Open original](https://onelinerhub.com/php-gd/how-to-align-text-to-center-horizontally) or [edit on Github](https://github.com/Onelinerhub/onelinerhub/tree/main/php-gd/how-to-align-text-to-center-horizontally.md).

## Vertical and horizontal center align

```php
$im = imagecreatetruecolor(400, 300);

$c_black = imageColorAllocate($im, 0,0,0);
$c_green = imageColorAllocate($im, 46,204,64);
$text = 'Hi';

$font = '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf';
$p = imagettfbbox(40, 0, $font, $text);

imagettftext($im, 40, 0, (400 - $p[2])/2, (300 - $p[5])/2, $c_green, $font, $text);
imagePng($im, '/tmp/image.png');
```

We've used `(400` - $p[2])/2` to center align text horizontally and `(300` - $p[5])/2` to get `y` coordinate so our text is also centered vertically.

[Open original](https://onelinerhub.com/php-gd/how-to-align-text-to-center-vertically) or [edit on Github](https://github.com/Onelinerhub/onelinerhub/tree/main/php-gd/how-to-align-text-to-center-vertically.md).
RESTful API Resource Naming Guide (URI Naming)
Tags: webdev, api, beginners, devrel
Published: 2022-09-08 14:14:41

When it comes to API Design, having an API resource naming convention, which is followed consistently, is very important. Coupled with [the correct use of HTTP verbs](https://twitter.com/daryllukas/status/1567868548177104896), this helps to standardize API access and reduce potential security concerns. Here's a quick guide on naming REST API resources and endpoints, which will help you design APIs which are intuitive, easy to use and **will make frontend developers fall in love with you** :wink:.

## URIs as resources (nouns)
One of the most common mistakes that API developers, including myself, make is misusing nouns and verbs in REST URIs. Here is a quick note to help you understand REST URI naming:

> REST APIs are used to get and manipulate resources (nouns), **not** actions (verbs). Therefore, REST URIs **should not** indicate any kind of action or CRUD (Create, Read, Update, Delete) functionality.

Examples:
```js
// Get all user resources
GET "https://example.com/api/v1/users" // Correct
GET "https://example.com/api/v1/listUsers" // Wrong

// Update a single photo resource
PUT "https://example.com/api/v1/photos/{id}" // Correct
PUT "https://example.com/api/v1/updatePhoto/{id}" // Wrong
```

## Pluralized Resources
Unless you have a [singleton](https://google.aip.dev/156) or function resource, you should pluralize all resource names.

Examples
```js
"/users/{id}"
"/schema" // Singleton resource
"/auth/login" // Function resource
```

## Resource hierarchy
A resource may have sub-collection resources. Conventionally, the hierarchy between individual resources and collections is displayed using Forward slashes.

Example:
Get all order resources which fall under a single customer resource.
```js 
GET "/customers/123/orders"
```

## Letters and dashes
Resource names must exclusively use lowercase letters. In the case of resource names with multiple words, use dashes instead of underscores or the camel case convention.

Example
```js
"/users/123/pending-orders" // Correct
"/users/123/pendingOrders" // Wrong
"/users/123/pending_orders" // Wrong
```

## Additional Tips

- No abridging. `/users/{id}/phone-number` instead of `/users/{id}/tel-no`
- No trailing forward slash. `/users/{id}/pending-orders` instead of `/users/{id}/pending-orders/`
- Consistency is key
- Use query parameters to filter, sort or limit a URI collection. `/users?country=ZM&sort=createdAt&limit=100`

Please comment to share any other best practices when it comes to RESTFul APIs.
IISNode Shows an Error When Opening a Particular Page on My Website
Published: 2022-09-08 14:10:24

My website is built with angular 9 and hosted on windows server. This technology is new to me as previously I was on PHP. So, facing many challenges and issues. Recently, while browsing my site I came across a webpage named “[airlines PNR status](https://www.indiantrain.in/flight-pnr-status)” of my site which shows error but no other webpage shows the error. I think this page is heavy and too much time to respond that’s why showing the error.
Functional DOM Manipulation
Tags: javascript, beginners, webdev
Published: 2022-09-08 13:53:26

## Functional DOM Manipulation
Build A Functional DOM Manipulation Toolkit and a Todo App Demo with it.

### The Toolkit
```javascript
const SVG_NS = 'http://www.w3.org/2000/svg';

export const el = type => document.createElement(type);

export const svg = type => document.createElementNS(SVG_NS, type);

export const text = value => document.createTextNode(value);

export const append = (parent, children) => {
  const fragment = document.createDocumentFragment();
  fragment.append(...children);
  parent.appendChild(fragment);
};

export const appendChild = (parent, child) =>
  parent.appendChild(child);

export const attr = (node, name, value) => {
  if(!value) {
    node.removeAttribute(value);
    return;
  }

  node.setAttribute(name, value);
};

export const addClass = (node, ...classNames) =>
  node.classList.add(...classNames);

export const setTextContent = (node, text) => 
  node.textContent = text;

export const on = (node, type, handler) =>
  node.addEventListener(type, handler);

export const off = (node, type, handler) =>
  node.removeEventListener(type, handler);
```

### TODO APP DEMO
```javascript
import { el, on, off, setTextContent, text, attr, addClass, append, appendChild } from './tookit.js';

const createDeleteTodoBtn = handleTodoDelete => {
  const deleteTodoBtn = el('button');
  setTextContent(deleteTodoBtn, 'Delete Todo');
  
  const handleDelete = () => {
    off(deleteTodoBtn, 'click', handleDelete);
    handleTodoDelete();
  };

  on(deleteTodoBtn, 'click', handleDelete);
  
  return deleteTodoBtn;
};

const createTodo = ({ todo, id }) => {
  const todoItem = el('li');
  const todoText = text(todo);
 
  const handleDelete = () => {
    todoItem.remove();
    // do cleanup stuff
  };

  const deleteTodoBtn = createDeleteTodoBtn(handleDelete);

  addClass(todoItem, 'todo');
  
  attr(todoItem, 'data-id', id);

  append(todoItem, [todoText, deleteTodoBtn]);

  return todoItem;
};

const createTodoList = data => {
  const todoList = el('ul');

  addClass(todoList, 'todo-list');

  const todos = data.map(createTodo);

  append(todoList, todos);

  return todoList;
};

const createTodoForm = handleForm => {
  const todoForm = el('div');
  addClass(todoForm, 'todo-form');
  const todoInput = el('input');
  const handleSubmit = e => {
    e.preventDefault();
    const todo = todoInput.value;
    if(!todo) {
      return;
    }
    handleForm({
      todo,
      id: crypto.randomUUID();
    });
  };
  on(todoForm, 'submit', handleSubmit);

  return todoForm;
};

const createTodoApp = initialData => {
  const appContainer = el('div');
  
  addClass(appContainer, 'todo-app');

  const todoList = createTodoList(initialData);
  
  const handleFormSubmit = todo => {
    appendChild(todoList, createTodo(todo));
  };
  
  const todoForm = createTodoForm(handleFormSubmit);

  append(appContainer, [todoForm, todoList]);
  
  return appContainer;
};
```
Discord screen share with audio on Linux!
Tags: discord, webrtc, linux, rust
Published: 2022-09-08 13:39:00

Unfortunately, if you're using Discord on a Linux-based operating system, you know that Discord screen sharing doesn't include audio from your apps like how Windows and macOS does.
I searched for a way to get audio working for Discord screen share on Linux; I found another guy with the same frusration, so I decided to work with him to create Tuxphones, a program made of two components: a daemon and a BetterDiscord plugin.
The daemon creates a virtual PulseAudio sink, and the BetterDiscord plugin sends discord stream information to the daemon and blocks the default Discord stream.

After the information is sent over, the daemon takes over and creates a WebSocket connection with Discord's gateway then connects to Discord’s RTC servers.

After a lot of trial and error, we managed to get a video stream to the discord server with our external using H264 but we still haven't managed to make discord's webrtc backend read our Opus audio stream.
We don't know what the error is and we are trying to investiage it, but neither of us know that much about WebRTC.

If anyone wants Discord screenshare with audio on Linux as bad as we do and knows WebRTC, please help us out. 

**You can find our code on Github:**
[**Tuxphones**: https://github.com/ImTheSquid/Tuxphones](https://github.com/ImTheSquid/Tuxphones)
[**gst-webrtcredux** _(the plugin that we developed to use webrtc-rs with gstreamer)_: https://github.com/ImTheSquid/gst-webrtcredux](https://github.com/ImTheSquid/gst-webrtcredux)
Do you use Create React App?
Tags: react, devops, opensource, programming
Published: 2022-09-08 13:35:49

We are looking for React developer using create react app to test our software delivery automation platform(TruStacks) and give us feedback. If you are interesting in going through tutorials and trying out the system, click the link below to get started. 

https://docs.trustacks.io/overview/

If you have any questions, feel free to join our discord and open source community. We appreciate your help!

https://discord.gg/kH7m3NZ5
My journey in the land of Linux!
Tags: linux, beginners, opensource
Published: 2022-09-08 13:33:40

Before we learn about my Linux journey, let us take a glimpse at my past! It was probably year 2016 when I got my first computer, and like any classic teenager would, I stuck to playing games. It taught me several things to be honest. The one's that top the list are File Management, Torrent, How to not get ~~click-baited~~ and such things. This was the beginning of my using tech, never knew that the stuff I did back then would influence me to this extent.

## Beginning of Linux
Around 2018, I was reading an article by [NullByte](https://null-byte.wonderhowto.com/) and that was the bloom of linux in my mind. I, like many other linux enthusiast started my journey with the Debian based _Kali Linux_ distro. To my surprise, It was excellent. Of course I wiped off the hard disk from the family computer while installing a new operating system on bare metal, but the sense of accomplishment was much greater to be honest. So I stuck with it for a while until high school happened

## Welcome to the High School
In my country, secondary high school is a big deal since we have highly competitive exams to attempt and crack. Unfortunately, I didn't make it but that's a different story for a different blog.
Now that High school was over, I had alot of free time and I mean **Alot**, it was around this time I made my [First Website](http://mohdmuneeb.live), but this free time allowed me to experiment!

## Let the Experiment begin

Oh boy this was a really fast paced time, I went from Kali linux to Parrot Security OS real fast. Parrot was really good. I had similar UI (ofc I use GNOME), easier installation and best of all was the fact that it had all the pentesting tools like burp, metasploit, aircrack-ng, Zenmap, Ettercap and many other in built. The cherry on top was that it connected to Wi-Fi drivers without a hassle. Soo this was something I loved. The came Pop OS! to the story. Pop!OS was clean, it was really beginner friendly. I really should have tried it a long time ago. But hey we were here. Then I went to Garuda Linux. This was **too cool**, trust me. The Dragonised theme was top notch, it was an eyecandy. The boot-time was fast but not as fast as PopOS or any other's. It was not the most user friendly distro, but it was alright because I already had gotten a hang of Linux by now. A few other distro's were Ubuntu, Manjaro, _I tried Gentoo but miserably failed_ and CuteFish OS

## I use Arch btw!

![My Arch Wallpaper in the start of my Arch Journey when I used i3wm](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9wrjuu8wa29itgdfakhp.png)
As you guessed, I ofc stumbled upon Arch, I love it. It has arguably the fastest boot time I have ever seen. I know exactly what to install or update whenever anything goes wrong. I also fell in love with [r/unixporn](https://www.reddit.com/r/unixporn/) and Arch was perfect for testing ever single dot file I could get my hands on. Now, currently I am on Arch and I think I will continue to experiment with it!
New Progress Bars Accessible Components Released!
Tags: react, html, tailwindcss, news
Published: 2022-09-08 13:33:13

New Accessible component just loaded up! 🎉 

Have a look at the new Accessible tailwind powered, Progress Bars with 7 variations and 96 possible combinations!

[https://wind-ui.com/components/progress-bars/](https://wind-ui.com/components/progress-bars/)
Show your VSCode Setup
Published: 2022-09-08 13:32:39

I have been switching between themes and font's for a while but I have something finally and I want to show it off. 

Here is mine.

![Ephraim Atta-Duncan VSCode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pi0pi2rok37qhvp8zp59.png)

**Theme**: [Gruvbox Material](https://marketplace.visualstudio.com/items?itemName=sainnhe.gruvbox-material)
**Font**: [Monocraft](https://github.com/IdreesInc/Monocraft) - A programming font based on the typeface used in Minecraft

I hope mine isn't too crazy..😬

So tell me what's your current VSCode theme and font look like? I'm curious.

![gif](https://media.giphy.com/media/qAkvnjpXqpIUvkxpG0/giphy.gif)
subdotnet
Tags: subdotnet, avalanche, blockchain
Published: 2022-09-08 13:28:16

---
title: subdotnet
published: true
description: sub.net - Part 1
tags: 'subdotnet,avalanche,blockchain'
cover_image: 'https://raw.githubusercontent.com/boulix3/devblog/main/posts/assets/subdotnet-header-small.png'
id: 1187980
date: '2022-09-08T13:28:16Z'
---


[Sub.Net](https://github.com/subdotnet)

_Custom avalanche subnet VMs written in C#_

## How it all started

[This project](https://github.com/boulix3/subdotnet) was originaly my submission for the Avalanche Summit Hackathon in Barcelona.
It was a simple proof of concept showing a dotnet app implementing the [avalanche vm](https://github.com/ava-labs/avalanchego/blob/master/proto/vm/vm.proto) interface and running as an avalanche subnet.


## Where it's going

The goal is to make it as easy as possible for any .net developper to create a custom blockchain.

The [github organisation](https://github.com/subdotnet) will contain at least two projects : 
- [sub.net](https://github.com/subdotnet/sub.net) Nuget package 
- [sdn](https://github.com/subdotnet/subdotnet-cli) Command line interface published as a [dotnet-tool](https://www.nuget.org/packages/sdn/)
New iPhone 14-series: mobile testing & Previews
Published: 2022-09-08 13:09:27

iPhones 14-series viewport, viewport size, screen size, dimensions, CSS pixel ratio:
* [iPhone 14](https://blisk.io/devices/details/iphone-14)
* [iPhone 14 Plus](https://blisk.io/devices/details/iphone-14-plus)
* [iPhone 14 Pro](https://blisk.io/devices/details/iphone-14-pro)
* [iPhone 14 Pro Max](https://blisk.io/devices/details/iphone-14-pro-max)


iPhone 14-series previews are available on the accounts of https://www.pinterest.com/anddasjdsa/devices-iphones-androids-tablets-desktops/ on Pinterest and https://dribbble.com/andddrew85 on Dribbble.

iPhone 14-series device previews are located on a board called Devices https://www.pinterest.com/anddasjdsa/devices/:
* [iPhone 14](https://www.pinterest.com/pin/341992165467208305/)
* [iPhone 14 Plus](https://www.pinterest.com/pin/341992165467208313/)
* [iPhone 14 Pro](https://www.pinterest.com/pin/341992165467208327/)
* [iPhone 14 Pro Max](https://www.pinterest.com/pin/341992165467208330/)

iPhone 14-series device previews on Dribbble:
* [iPhone 14](https://dribbble.com/shots/19333582-iPhone-14-viewport-screen-size-CSS-pixel-ratio-cross-browser)
* [iPhone 14 Plus](https://dribbble.com/shots/19333604-iPhone-14-Plus-viewport-screen-size-CSS-pixel-ratio)
* [iPhone 14 Pro](https://dribbble.com/shots/19333619-iPhone-14-Pro-viewport-screen-size-CSS-pixel-ratio)
* [iPhone 14 Pro Max](https://dribbble.com/shots/19333843-iPhone-14-Pro-Max-viewport-screen-size-CSS-pixel-ratio)


There's a Twitter account that covers device viewports, resolutions, and screen sizes:

* [iPhone 14](https://twitter.com/andrii_bakirov/status/1567858666719612934)
* [iPhone 14 Plus](https://twitter.com/andrii_bakirov/status/1567858716875149313)
* [iPhone 14 Pro](https://twitter.com/andrii_bakirov/status/1567858750744104960)
* [iPhone 14 Pro Max](https://twitter.com/andrii_bakirov/status/1567858750744104960)


Mobile and responsive testing boards:

GitKraken board for Mobile testing: https://app.gitkraken.com/glo/board/YYAGtEIdUAlyCam8
GitKraken board for Responsive testing: https://app.gitkraken.com/glo/board/YYAG1kIdUAlyCaoN
Trello board for Mobile testing: https://trello.com/b/9nRL3o1Q/mobile-testing-https-bliskio
Trello board for Responsive testing: https://trello.com/b/Puuu5XwU/responsive-mobile-testing-https-bliskio
How I could manage (without permission) someone else their Shopify domain via Namecheap.
Tags: domain, namecheap
Published: 2022-09-08 12:57:47

Before I was called "**GitDeVries**" I carried the name "Djoowe". Along with the two domains "djoowe.com" and "djoowe.me". Because I hate to have deprecated domains in my list. I let Namecheap remove them from my account (great service). That means they will be owned by Namecheap after transfer:

![Register info after transfer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sfilhvy6swjoca9t05gs.png)

**How do I know these details after it is out of my account?**
I bought this account on *Namecheap account B* and gave admin rights to my *personal account A*. When I asked Namecheap them to remove the domain from my *Namecheap account B*, they transferred the domain to themselves. Notice the fact they do not remove any managers or domains admins.

So my personal account A still had that domain available that still annoys me till this day. I did ask them after to remove it but they can't / won't. 

Today I wanted to ask it again, because why not? And they told me to ask the domain owner. So I told them they are... To my surprise, they are not anymore for "djoowe.com". I think they sell these domain on their marketplace. So a shopify owner owns it right now. 

And I can still edit the domain. Even though I pointed this out to Namecheap, did not really "cared". I should contact the domain owner and HE should fix it. So they won't care about me being able to manage another customers domain without being permitted.

Great stuff. Hopefully after the upcoming 3hour chat sessions they fix it.
Removal of Duplicate Sorted Array with Dart.
Published: 2022-09-08 12:49:00

To start with I'm Bashir by name. A flutter developer who developed interest in using Dart as an Approach for Data structure and Algorithm.
I stumbled upon an easy task on leetcode and i decided to  document the solution in an article. I hope is sounds cool right? yea😁.
The question goes thus;

**Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same.**

**Since it is impossible to change the length of the array in some languages, you must instead have the result be placed in the first part of the array nums. More formally, if there are k elements after removing the duplicates, then the first k elements of nums should hold the final result. It does not matter what you leave beyond the first k elements.**

**Return k after placing the final result in the first k slots of nums.**

**Do not allocate extra space for another array. You must do this by modifying the input array in-place with O(1) extra memory.**

link to the question: https://leetcode.com/problems/remove-duplicates-from-sorted-array/

Solution:
  **Step 1**: Don't forget in the first paragraph of the question, we are been told to remove the duplicate of (nums) sorted array.
One of the easiest way of doing that is to convert the array to a Set. I hope you get that? GOOD!👍

 **step 2**: Emphasis on second paragraph it was stated that the sorted list must be place in first part of the sorted array nums.
Now, the best thing to do firstly is to convert the Set from step one to a list. 

**Step 3**: Returning the length of the new list.

Here is the solution below using Dart


```
class Solution {
  int removeDuplicates(List<int> nums) {
  var toSet = nums.toSet();
  var toList = toSet.toList();
   int toListLength = toList.length; 
     for(int i=0; i<toList.length; i++){
         nums[i]=toList[i];
     } 
      return toListLength; 
  }
}
```
I hope this is pretty easier Thank you all for reading!