teleren/devto huggingface dataset:
Trigger an instant flow from a canvas app - simple example
Tags: powerplatform, powerautomate, powerapps, canvasapps
Published: 2021-12-23 05:27:29

# 1. Create a canvas app with three components

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

1. Text input will what we send to the Instant Flow
2. Create Task button will be the trigger
3. LabelResult will be what is returned

# 2. Create Instant Flow

In a solution, create a new Instant Flow

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

Select Power Apps as the Trigger and call it "Instant Flow"

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

# Edit the Instant Flow

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/it7w0ayqf74m44td54qu.png)
 
 There should be 3 steps

**PowerApps** - That's the first step - as it's an instant step, you don't have to do anything

**Add a new row** - this is specific to this example and all I'm really doing is going to create a task with the subject of all the input I'm putting into the flow

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

(Optional) to create inputs go to the Dynamic Content tab and click Ask in PowerApps

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

**Respond to a Powerapp or Flow** - this step returns an output back to the canvas app. For our experience we'll just put a success message.

# 4. Hook up the Canvas app to use the Instant Flow

Select your button, click on Action at the top, then Power Automate and select the Flow you want

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

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

Then Edit the formula so it is  **Set(Var1, InstantFlow.Run(User().Email, TextInput1.Text, "extra"))**

##Breaking down the formula

InstantFlow.Run will trigger the flow - it asks for 3 variables so I've put them in there.
Set is setting a variable with the variable being the first parameter and the second being the value of the variable. So here you're saying set Var1 to be the output of the InstantFlow.


#Set the LabelResult

Lastly you want the LabelResult to display the returning message from the flow so click on it and put in Var1.result as the text message

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ixcom9g9jczqx7veyspb.png)
Fun way to sort users in talks/meetings
Tags: vue, javascript, webdev, programming
Published: 2021-12-23 05:22:25

Hi there,

You know those daily meetings that almost everyone have nowadays mostly virtually due to Covid-19? It can be hard to start them, specially in large teams, because no one knows if its their turn to talk or not, maybe want to respect hierarchy or something else.

With that in mind (and a few other reasons) in the beginning of the pandemic I created just for fun and as dare from my co-workers a way to randomly sort the order in how everyone in each team would speak everyday.

As this was just for fun and in house project I created a few extra features such as:

- daily quotes to boost the day
- the shuffler user (the user who would shuffle the order in every day)
- number of rounds the shuffle would sort, completely random also.
- sound of deck cards shuffling
- confetti effect when shuffle had finished sorting (with an extra audio - 20th Century Fox Intro Flute - which is an inside joke in my team)

This project was well received in the team and others also inside the company that more than a year passed it is still used everyday.

But the project was basic, being built with Vue 2 without components (file extension was .js) nor ES6 modules


Today I show you the improved version of this project, it is built with:

- Vue 3
- SCSS
- Pug
- Vite
- JSON Server

It has a few new features/improvements:

- CRUD application with JSON Server (with ability to upload image/avatar stored in base64, fallback to [UI avatars API](https://eu.ui-avatars.com) if no image provided)
- Daily Random Background from [Picsum API](https://picsum.photos/)
- New quotes API and it's author with picture from [Quoteable API](https://api.quotable.io/)
- Layout improvement - the shuffle sorting works in mobile

{% github dippas/shuffler %}

Give a ⭐️ if in github you enjoyed this project or [buy me a coffee](https://www.buymeacoffee.com/dippas)!
Export Oracle DB Schema via Data Pump
Tags: oracle11g, database
Published: 2021-12-23 05:11:57

1. Create a directory at OS level
`mkdir -p <dir.path>`
ie. `mkdir -p /u02/mybackdir`
p/s: change the folder owner to oracle (optional) ie. `chown -R oracle:oinstall /u02`

2. Run this command to enter in SQL mode (as user oracle) : `sqlplus / as sysdba`

3. `create directory <dir.name> as '<dir.path>';`
ie. SQL> `create directory datapump as '/u02/mybackdir';`
	
4. `grant read, write on directory <dir.name> to <sql.user>;`
ie. SQL> `grant read, write on directory datapump to hms_a;`	

5. check if directory successfully created @ SQL> `select * from dba_directories;`

6. `cd /u01/app/oracle/product/11.2.0.4/dbhome_1/bin`
	
7. `expdp DUMPFILE=<dir.name>:<dumpfile.name> LOGFILE=<dir.name>:<logfile.name> schemas='<schema.name>'`
`expdp DUMPFILE=datapump:myschema.dmp LOGFILE=datapump:myschema.log schemas='MY_SCHEMA'`
OK. So...I might have completely rebuilt my website...again
Tags: webdev, showdev, html, css
Published: 2021-12-23 05:01:52

First of all Merry Christmas in advance, you probably won't be hearing from me on Christmas Day.

Okay, so now that *that's* out of the way, let's talk about my website.

Yes...I rebuilt it...again.

## What motivated you to redesign it
Good question. Well, it was time to renew my domain (siddharth.one), and yes, I had found a better domain. Using the old website just wasn't going to help, so I thought, f*ck it, let's just rebuilt it.

Also with the release of Tailwind CSS 3, I really wanted to get my hands dirty with the updated version of the framework.

## Okay, what *really* motivated you to design it

{% comment 1c76h %}

👆
The comment above. When scrolling through a [particular old post](https://dev.to/sidcraftscode/i-revamped-my-home-page-any-suggestions-57m4), I came across this comment. 

To be honest. I'm not looking for a job. And I won't need to for some time yet. But...

> They care about **what can you do** and **how long you've been doing it**.

Wouldn't other people wanting to visit my site first like to first see, who I am, what I do, the skills I have, and the projects I have built. The answer is probably yes. Because why read someone's blog if you don't know if they are experienced in a certain topic.

## Okay, enough talking. Show me the changes

### 1. The Domain
As I previously had mentioned, my old domain (siddharth.one), was going to renew, and I needed a better domain. Something shorter and possibly with a `.com` ending. So I decided to go for `sidcrafts.com`.

### 2. The design
To be completely fucking honest, the old website design wasn't too bad. In fact it was pretty good. But I sort of wasn't a fan of the layout the black background, or the orange/pink text. Another thing I learnt. Content is more important. So after changing the color scheme and some other stuff, I changed the layout to allow a ton more of content on the homepage.

A cleaner more simpler design:

![https://siddharth.one screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/prw6egg4psqv66x2oqjh.jpeg)

![https://sidcrafts.com screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zyx4lxmnqhdrzz38vov7.png)

### 3. The way the website is powered.
My old website was powered with Jekyll. I have to admit, pretty good, but painful update times. Also painful to code. My new website is built with HTML, Tailwind CSS and Alpine.js. No big bloated frameworks this time. Also, the blog page uses the [Hashnode API](https://api.hashnode.com) to display the blog posts.

To be honest, quite a simple GraphQl query. 
```
{
  user(username: "sidcraftscode") {
    publication {
      posts(page: 0) {
        title
        brief
        slug
      }
    }
  }
}
```
> I learnt how to do this from [this blog post](https://catalins.tech/hashnode-api-how-to-display-your-blog-articles-on-your-portfolio-page)

Okay, we'll that's all then, I hope.

Thanks for reading. Merry Christmas

Check out my [Website](https://sidcrafts.com) | [Twitter](https://twitter.com/sidcraftscode) | [Github](https://github.com/sidcraftscode)
How to Add the Blazor Dropdown Menu to a Blazor WebAssembly App
Tags: blazor, webdev, dotnet, csharp
Published: 2021-12-23 04:59:47

A quick overview on how to create and configure the Syncfusion [Blazor Dropdown Menu component](https://www.syncfusion.com/blazor-components/blazor-dropdown-menu) in a Blazor WebAssembly App using Visual Studio 2019. The Blazor Dropdown Menu allows users to toggle between the different contextual overlays that display the list of action items. 

In this video, you will learn how to add a simple Dropdown Menu to a Blazor WebAssembly app. You will see how to add icons and change their positions. You will learn how to navigate to other webpages and display the Dropdown Menu items horizontally. Finally, you will see how to hide the Dropdown Menu arrow and bind a click event to the component. 

Explore tutorial video: https://www.syncfusion.com/tutorial-v...

Download example from GitHub: https://github.com/SyncfusionExamples... 

{% youtube LKszhsAVuHc %}
React JSX
Published: 2021-12-23 04:33:24

**What is JSX**

React is a front-end JavaScript library and JSX is the features.JSX is javaScript XML in shorthand or we can say that one kind of syntax extension. It helps javascript write code like an HTML code as well as make the code easy, boost the performance and clean up the code complexity for better understanding. JSX, we can write HTML structures in the same file that contains JavaScript code.

**Let’s talk about how JSX works in the web browser?**

Browser is not understood JSX is not a regular JavaScript object browser can read only the  JavaScript regular object. For that, it needs a tranformastion JSX object to  JavaScript regular object and for this reason, need a transpiler like a Babel. Bable uses to transform the JSX object to a JavaScript object then pass it in the browser.

**Then why do we use JSX?**

JSX performs faster than the regular JavaScript 
Easy to make templates
Most of the errors are found in compiler time.
 
**For better understanding let’s see an example:**

render(){
    return(    	
          
<div>
             
<p>Learn JSX</p>
 
         </div>
 
    );
}
 
This is a JSX example we can see there is an HTML element  h1. First, react passes code into the virtual dom and creates an object like below. 

{
type: ’ h1 ’ ,
props:{
children: ’ Learn JSX ’ ,
}
}

After the transpile, this object passes the web browser and displays the output.
Update on Coding!
Tags: beginners, java, programming, productivity
Published: 2021-12-23 04:30:34

I haven't posted in a while since im busy practicing OOP's in Java 
but im still doing programiz exercise i'll continue it! by next week.

**

## _ADVANCE STUDYING_
**
im currently starting to learn java oop in youtube day by day!
i hate to think that i always watch one or two code a day but i can see that im being productive and still code!

i notice that if i code everyday i can remember every syntax in java.I feel like coding everyday is part of my daily routine and if i dont code i feel like my day is lacking something and that is practicing to code and advance studying!


`I just visit my profile and opened my notifications and im suprised that there are people that view my posts and reacts to it! I am very happy and inspired to write blog about my coding journey! THANK YOU SO MUCH TO ALL!`
How to Fix Windows 11 Can't Drag and Drop
Tags: windows11, dnd
Published: 2021-12-23 04:27:44

Lots of Windows 11 users are unhappy with Microsoft’s decision on cancelling the drag and drop support for taskbar. Some even want to roll back to Windows 10 since they find Windows 11 can't drag and drop and this greatly affect the way they use the computer on a daily basis. After upgrading to Windows 11, users are no longer able to drag and drop files onto the taskbar (or onto an app pined there). Besides, they can't pin an app to the taskbar by just dragging and dropping its icon.

**Drag and Drop Not Working in Windows 11 Is Not a Bug**

Some people suspect that drag and drop not working Windows 11 taskbar is a bug in the new operating system. However, Microsoft responds that it's not a known issue in Windows 11; it confirmed Windows 11 can't drag and drop files to the taskbar.

**Microsoft responded in a post on Feedback Hub:**

> Currently, dragging a file onto an app in the taskbar to open it in that app is not supported in Windows 11, but we appreciate all your feedback, and we’ll continue to use it to help guide the future of features like this.

![microsoft-response](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hyqwecuw0rqkievibcm5.png)

**How to Fix Windows 11 Can't Drag and Drop**

##1. Use Alt + Tab Shortcut
Using the Alt + Tab menu is a wonderful choice for Windows 11 drag and drop not working fix.

1. Navigate to the file or folder that you plan to drag and drop.
2. Select the file/folder. Then, press and hold your left mouse button.
3. Drag the file/folder a little to put it in grab mode.
4. Press Alt + Tab while keeping grabbing the file or folder to view all the apps opening in the taskbar.
5. Keep pressing the Alt Meanwhile, hit the Tab key repeatedly to switch between the available apps.
6. Release Alt and Tab keys when you select the app you need.
7. Also, release the left click when you’re inside the desired window to drop the file or folder there.
8. You can use cut & paste instead when you want to move a file/folder from one place to another.

##2. Open Two Windows Side by Side

1. Open the windows (folders or applications) on which you plan to perform the drag and drop action.
2. Arrange these two windows to put them side by side.
3. Navigate to the source folder and click & hold on the file/folder you want to drag.
4. Drag the file or folder across the window and then release to drop it.

##3. Edit the Registry
Attention: the Start button, the Search button, and the Cortana button will no longer be accessible from Windows 11 taskbar after you applied this fix.

1. Press Windows + R.
2. Type regedit and click OK.
3. Go to this path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages.
4. Right-click on the empty area in the right pane and select New → DWORD (32-bit) Value.
5. Name it as UndockingDisabled and double-click on it.
6. Change the Value data from 0 to 1 and click OK.
7. Close Registry Editor and restart your computer.

That’s how to fix the problem when finding drag and drop not working in Windows 11.
Wrapping up 2021
Tags: tooling, productivity, efficiency
Published: 2021-12-23 04:24:01

# Wrapping up the year with new tools for a great start in 2022.

## [Fig](https://fig.sh)
Definitely the tool I cannot live without anymore. Its capacity to understand or simply list the options when typing CLI is fabulous and help you save a lot of time. Yes there are a lot of completion tools available, but Fig is clearly outsmarting its competitors by its speed, accuracy, flexibility and UI.

## [Tabby](http://tabby.sh/)
I have to admit that I was a bit bored using iTerm2. It was great but quite massive and resource hungry. So, during most of 2021 I’ve been relying on the OS X de facto Terminal (or the one in VSCode).
That was true till I stumbled upon Tabby. Its UI and how you can layout the different windows inside it are making it a very promising alternative to the existing terminals.
My only regret at the time being is that Tabby is not yet supported by Fig, but that should be quickly addressed by the Fig team 😁

## [Github Copilot](https://copilot.github.com/)
Always on since I’ve been granted early access to it.
Yes, some suggestions are quite out of the blue, but I appreciate it’s great help in maintaining style in my code and making smart code suggestion that I would not have come up with.
It also greatly helps when you have to write very repetitive test cases or when working on some initialization routines.

What about you? Share you comments and thoughts below.

Original article was published [here](https://medium.com/@spaquet/2021-wrapped-76f04778b89c)
No module web3 when convert .py to .exe use PyInstaller
Published: 2021-12-23 03:29:04

when i run .py to make some transaction with web3, everything works fine, but when i try to convert that file.py to file.exe, the error "no module web3" appear, i've tried to fix by open file.spec and add some new code.
-------------------------------------------------
from PyInstaller.utils.hooks import collect_submodules
block_cipher = None
hidden_imports=collect_submodules('Web3')
---------------------------------------------------
and run command "pyinstaller file.spec" but error still stay there!
i'm struggled with this problem for over 5 days and still earn nothing, can anyone help me please:((!!!!
What's new in Apache JMeter 5.4.2?
Tags: webperf, testing, tutorial, performance
Published: 2021-12-23 03:27:51

<!-- wp:paragraph -->
<p>In my <a href="https://qainsights.com/log4j-vulnerability-important-note-to-performance-engineers/" target="_blank" rel="noreferrer noopener">last blog</a>, I listed various options to mitigate the CVE-2021-44228 vulnerability. Please note that Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints. Today, Apache JMeter team has released the emergency minor version of JMeter 5.4.2 which includes Log4j 2.16 jars. Let us know briefly about this release.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>What's new in Apache JMeter 5.4.2?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Typically, every release of JMeter will have a new and noteworthy section and numerous bug fixes and enhancements, and sampler updates. Since this is an emergency release, JMeter community focussed on Log4j 2.16 jars patch.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>There is no new or noteworthy in this minor release. </p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":8950,"sizeSlug":"full","linkDestination":"media"} -->
<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://qainsights.com/wp-content/uploads/2021/12/image-27.png"><img src="https://qainsights.com/wp-content/uploads/2021/12/image-27.png" alt="What's new in Apache JMeter 5.4.2?" class="wp-image-8950"/></a><figcaption>What's new in Apache JMeter 5.4.2?</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Only non-functional changes, which include Log4j 2.16 updates from Log4j 2.13.3. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You can download the latest version from <a href="https://dlcdn.apache.org//jmeter/binaries/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Please validate the SHA512 checksum to verify the integrity. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Typically, for any release, the community will wait for the votes for at least 72 hours. Since this is an emergency release, the team has released the minor version swiftly. </p>
<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":8949,"sizeSlug":"full","linkDestination":"media"} -->
<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://qainsights.com/wp-content/uploads/2021/12/image-26.png"><img src="https://qainsights.com/wp-content/uploads/2021/12/image-26.png" alt="" class="wp-image-8949"/></a><figcaption>Apache JMeter 5.4.2 Vote Binding</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:heading -->
<h2>Conclusion</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>It is highly recommended downloading the latest version of JMeter 5.4.2. Also, please update your docker images, Kubernetes deployment YAML, CI/CD script etc. to mitigate the risk. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Please let me know if you face any issues in JMeter 5.4.2.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Happy Testing!</p>
<!-- /wp:paragraph -->
OOP+DATA Structures then NLP class?
Tags: nlp, javascript, beginners, productivity
Published: 2021-12-23 03:00:09

Hey everyone,

I was wondering if java OOP + Data Structures is enough pre requisites for a natural language processing class, I feel like its gonna be too complex, I converted to comp science and learned very basic coding skills from OOP and Data structures 8 week course... do I have what's needed to take that class, I don't feel capable enough
Can someone guide me please
Tags: javascript, oop, beginners, datascience
Published: 2021-12-23 02:57:34

Im looking for a website where I can practice oop and data structures, I just finished taking these courses in uni but It was 8 weeks instead of 16 and everything was super crammed up and I feel like I may be lacking .. im looking for something with a built in ide... possibly! defiantly not zybooks, something with a video explanation thin built in ide ... maybe a step by step video explanation of project code in case I can't do it properly in the online ide!

I can't seem to find anything like that ... please advise
JavaScript Sorting Arrays
Tags: javascript, sorting, array
Published: 2021-12-23 02:18:11

## Array

The `sort()` method sorts an array alphabetically:

_Example_
```javascript
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.sort(); // Apple,Banana,Mango,Orange
```

The `reverse()` method reverses the elements in an array.
You can use it to sort an array in descending order:

_Example_
```javascript
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.reverse(); // Orange,Mango,Banana,Apple
```

### Numeric Sort
By default, the `sort()` function sorts values as strings.

This works well for strings (_"Apple"_ comes before _"Banana"_).

However, if numbers are sorted as strings, _"25"_ is bigger than _"100"_, because _"2"_ is bigger than _"1"_.

Because of this, the `sort()` method will produce incorrect result when sorting numbers.

You can fix this by providing a compare function:

_Example_
```javascript
const points = [40, 100, 1, 5, 25, 10];
points.sort( (a, b) => (a - b) ); // 1,5,10,25,40,100
```

Use the same trick to sort an array descending:

_Example_
```javascript
const points = [40, 100, 1, 5, 25, 10];
points.sort( (a, b) => (b - a) ); // 100,40,25,10,5,1
```

[Ref](https://www.w3schools.com/js/js_array_sort.asp)
no pyvenv.cfg file or, Python Interpreter error
Tags: pycharm, errors, bug
Published: 2021-12-23 02:00:26

[Solved this two Stack Over Flow issue: 
1)
https://stackoverflow.com/questions/52404529/cannot-setup-a-python-sdk-in-pycharm-project-using-virtualenv-after-os-reinsta/70457029#70457029

2) https://stackoverflow.com/questions/61026458/no-pyvenv-cfg-file]

Delete venv (Virtual Environment) folder if it exists in the project
then go to File>Settings>Project>Python Interpreter . Click the Python Interpreter box and select Show all . Delete Invalid Interpreter by clicking (-) 

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


![2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/phyo5gf2cpcddnmysjqn.png)


![3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjjvj8arh00qpparp4vb.png)
Click + to create a new venv

![4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5tsh2h4rbh9hvvzhqvy1.png)


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

You may see this then: 

![6](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tz3jigc0o0ptchyk4gu2.png)
Now run a code and it will be solved
![Code run](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s3gywfois9in4vr3ctic.png)