teleren/devto huggingface dataset:
NuGet Developer Tips: Refer local nupkg and delete cache
Published: 2022-08-22 06:06:17

When we develop NuGet package in local environment, there are several things we need to be careful.

## NuGet package source

In Visual Studio or NuGet cli, we can specify source where to find the package. When developing NuGet package, we can use local folder path as NuGet source.

![nuget source](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d7tu7htbjj6p3edcyfq6.png)

By doing this, we can omit uploading package to feed or NuGet.org for test.

## NuGet package version

Whenever we update something, we need to give different version for nupkg file, so that NuGet manager can download new package. If we use same version number, then NuGet manager keep using local cache which downloaded previously.

## Delete local NuGet pack

We sometimes need to delete local NuGet pack to avoid conflict between local cache versus package in feed. We can find the cache path by running NuGet command.

```shell
nuget locals all -list
```
For Windows, I find it in my profile.

``%UserProfile%\.nuget\packages``

![nuget cache](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7176b073c0b5yis01g20.png)

Just delete the specific package folder. Even though we can use NuGet cli to delete cache for source level, I won't recommend clear entire cache as we have to download all dependencies again when we restore or compile next time. Please teach me if NuGet cli has command to delete specific cache.
need twitter python bot developer
Published: 2022-08-22 06:04:06

[Instructions]: # (To submit to the Redis Hackathon on DEV, please fill out all sections. DELETE ALL NOTES, reminders, and guidelines before publishing.)


### Overview of My Submission
[Note]: # (Share what you built, how you built it, and the inspiration behind the idea! Please make sure the project links to the appropriate GitHub repository, and includes the [MIT](https://choosealicense.com/licenses/mit/), [Apache](https://www.apache.org/licenses/), [BSD-2](https://opensource.org/licenses/BSD-2-Clause), [BSD-3](https://opensource.org/licenses/BSD-3-Clause), or [Commons Clause](https://commonsclause.com/) license and a README.)


### Submission Category: 

[Note]: # (Select between Minimalism Magicians, Microservice Mavens, MEAN/MERN Mavericks, Wacky Wildcards – Descriptions of requirements listed in the announcement post.)

### [Optional: Video Explainer of My Project]

[Note]: # (This is where you can embed the optional bonus video you created to accompany your submission. Ensure your video is published publicly to YouTube and you’ve used the embed tag here to share it with us. By opting to include a video, you will be eligible for BONUS prizes. Learn more in the announcement post.)

### Language Used
[Note]: # (Select the language you used for your project – must be one of the following: C#/ASP.NET Core, Java/Spring, JS/TS/Node.js, Python)


### Link to Code

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% embed link_to_your_repo %}` to share a GitHub repository)

BTW, your Github code’s README file should contain the details as [per this template](https://github.com/redis-developer/hackathon-docs/blob/main/README.md).

### Additional Resources / Info

[Note:] # (Be sure to link to any open source projects that are using your workflow!)

[Note:] # Screenshots/demo videos are encouraged!

### Collaborators

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any. Prizes for winning projects with multiple collaborators will be sent ONLY to the person who posts this submission and they will distribute the prize evenly.)

[Note]: # (All collaborators with DEV profiles listed here will receive a badge, however, prizes including sticker packs will only be sent to the member who publishes the post, with the person expected to distribute the prizes evenly amongst their collaborators.)

[Reminder]: # (Submissions are due on August 29th, 2022 @ 11:59 PM UTC).

- - - 

[Note]: # (Please ensure  that the footer content below is part of your post when publishing. Please delete this note in parentheses but do not delete the content below.)


* _Check out [Redis OM](https://redis.io/docs/stack/get-started/clients/#high-level-client-libraries), client libraries for working with Redis as a multi-model database._
* _Use [RedisInsight](https://redis.info/redisinsight) to visualize your data in Redis._
* _Sign up for a [free Redis database](https://redis.info/try-free-dev-to)._
Best SEO Trends to watch in 2022
Tags: seocompanyinindia, seoservicesinindia, localseoservices
Published: 2022-08-22 05:49:33

By the use of SEO Services there is a significant impact on business growth. Following points about SEO trends can be helpful to you.

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

Contact: +91 9081022999

Website:[https://www.atoallinks.com/2022/6-seo-trends-to-watch-in-2022/](https://www.atoallinks.com/2022/6-seo-trends-to-watch-in-2022/)
Getting Started with the Vue Calendar
Tags: webdev, vue, calendar
Published: 2022-08-22 05:29:24

Learn how easily you can create and configure Syncfusion [Vue Calendar](https://www.syncfusion.com/vue-ui-components/vue-calendar) using the Vue CLI command. This video also explains how to configure a few of the control’s basic features like setting specific date range values, multi-date selection, and navigation between different calendar views. 

Product overview: https://www.syncfusion.com/vue-ui-components/vue-calendar

Download an example from GitHub: https://github.com/SyncfusionExamples/getting-started-with-the-vue-calendar

Refer to the following documentation : https://ej2.syncfusion.com/vue/documentation/calendar/getting-started/

{% youtube 9eIaRJ0dGJQ %}
Jump Game - I
Tags: javascript, leetcode
Published: 2022-08-22 05:09:00

```
/**
 * @param {number[]} nums
 * @return {boolean}
 */
var canJump = function (nums) {
  let maximum = 0;
  if (nums.length <= 1) {
    return true;
  }

  for (let i = 0; i < nums.length; i++) {
    if (maximum <= i && nums[i] == 0) return false;

    if (i + nums[i] > maximum) {
      maximum = i + nums[i];
    }

    if (maximum >= nums.length - 1) return true;
  }
  return false;
};

```
Docker
Tags: docker, javascript
Published: 2022-08-22 05:08:20

What does Docker do? What are containers? What are images? Why is this service so popular? I kept hearing about docker and how it uses containers. But had no clue as to why or what exactly these containers are or do. So after spending a couple of hours on dockers website, I got my answers.

## Images

To create an image, Docker uses a file called Dockerfile. This file contains a list of commands of what should be in an image when it gets built. Once this list is completed, it’s sent to the Docker engine which then builds the image by running the commands. Each of these commands are layers. When a change is made on a certain layer, then only that layer gets rebuilt. This is why the containers are ‘lightweight’. So let’s say I have an outfit. My shirt, pants, and shoes are separate layers. And if I want to change my shirt, instead of having to get a whole new outfit, I can just throw away my shirt and get a new one.

## Containers

A container is a process that’s kept separate from the rest of the system. It holds all the configurations and supporting files, which are images, needed for an app to run. It can have one or multiple images. The set up is made so that if an image goes down, then it can easily and quickly be replaced. A container also has its own file system and network. This is why when running the container, a specific port needs to be given. And this is also what makes it really secure. And if more than one container is needed on the same network, then they can be made to share the port. Containers are simply set on ‘isolation’ mode by default.

![isolation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uwefkz190bh0o0xc1z1g.gif)


## Docker Client

Docker Client are the commands to run when communicating with Docker.
- `Docker build` - builds the Dockerfile
- `Docker run` — runs a new container
- `Docker image` - manages an image
- `Docker container` - manages a container
- `Docker pull` — pulls an image from DockerHub
- `Docker push` - pushes an image to DockerHub



Docker solves the environmental issues of running an application on ones own computer. No more having to worry about if my computer is gonna give me problems with running my app. I have a hard enough time just getting through git commands and eslint format issues when trying to commit.

![too many problems](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vkssdjnt32ld3c6771wu.gif)
 I can have my whole app run with docker. The code I write, the database, whatever I want. Simply just set everything in containers and let them work their magic. Gives me more time to code more console.log(‘Hello World’).

**Sources**

- https://docs.docker.com
- https://www.docker.com
342. Leetcode Solution in Cpp
Tags: cpp
Published: 2022-08-22 05:07:55

```
class Solution {
 public:
  bool isPowerOfFour(int n) {
    // Why (4^n - 1) % 3 == 0?
    // (4^n - 1) = (2^n - 1)(2^n + 1) and 2^n - 1, 2^n, 2^n + 1 are
    // three consecutive numbers; among one of them, there must be a multiple
    // of 3, and that can't be 2^n, so it must be either 2^n - 1 or 2^n + 1.
    // Therefore, 4^n - 1 is a multiple of 3.
    return n > 0 && __builtin_popcountll(n) == 1 && (n - 1) % 3 == 0;
  }
};

```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/power-of-four/
Workflows Tips #10: Online meetup recording, new in Workflows, and using emojis 😎
Tags: nocode, workflows, automation, oktaworkflows
Published: 2022-08-22 20:23:17

---
title: Workflows Tips #10: Online meetup recording, new in Workflows, and using emojis 😎
published: true
date: 2022-08-22 04:49:37 UTC
tags: nocode, workflows, automation, oktaworkflows
canonical_url: https://maxkatz.net/2022/03/04/workflows-tips-10-online-meetup-recording-new-in-workflows-and-using-emojis-%f0%9f%98%8e/
---

Welcome to another Okta Workflows Tips post. [Read](https://dev.to/oktaworkflows/okta-workflows-tips-57bj) all other tips.

In this post:

- Introduction to Okta Workflows online meetup recording
- New in Workflows: flow backup and 17 new events in System Log
- Using emojis

## Introduction to Okta Workflows online meetup recording

We hosted our first [online meetup](https://dev.to/maxkatz/online-meetup-learn-how-to-automate-identity-processes-with-no-code-workflows-bfk-temp-slug-3058186) this week. We did a quick introduction to Workflows and spent most of the time building two flows. You can watch the meetup replay:

{% youtube v3esm9HPJA0 %}

## New in Workflows: flow backup and 17 new events in System Log

The Workflows team released two new features to help you build workflows and automatons.

- Flow backup to GitHub or Google Drive
- 17 new workflows events in System Log

[Read more about these new benefits](https://dev.to/maxkatz/new-in-workflows-flow-backup-to-github-and-google-drive-and-17-new-workflows-events-in-system-log-1oi6).

## Using emojis 😎

Ok, this is definitely a fun one 🤘🏼

To add a bit of color and make it simpler to find a folder you can use emojis in folder name. You can also use emoji name in flow names. For example, you can add a ⭐.

[![Using emojis in folder and flow names](https://katzmax.files.wordpress.com/2022/03/workflows_tips10_emojis.png?w=1024)](https://katzmax.files.wordpress.com/2022/03/workflows_tips10_emojis.png)
<figcaption>Using emojis in folder and flow names</figcaption>

That’s all for now. Let me know if you have any tips you would like to share.

Two resources to help you learn more:

📌 Try this step-by-step getting started tutorial: [Build Your First Automation With Okta Workflows: Notify When User Is Suspended](https://dev.to/maxkatz/build-your-first-automation-with-okta-workflows-notify-when-user-is-suspended-1l3p-temp-slug-2933517).

📌 All the [Workflows resources](https://dev.to/maxkatz/okta-workflows-resources-1ebi) (docs, tutorial, office hours, templates, office hours and more)
JavaScript : Array Literals
Tags: javascript, programming, codenewbie, beginners
Published: 2022-08-22 04:49:28

Hi everyone! Today we are going look at a very basic  but very useful concept Array literals. Unlike a number or string element which represents a single element array are collection of similar data type. Arrays can have zero or more elements. In this article we are going to discuss about array literals in JavaScript.

Array are represented by set of elements enclosed in square brackets.

`
let x=[5,6,10,15,25];
console.log(x.length)
`

length property of Arrays will return 5.

### Arrays and extra commas(,)

Presense of extra commas(,) in arrays affects the array length. Any two adjacent commas in an array leaves an empty slot for unspecified element. Let's look at few examples.

`
let x=[5,,6,7,8]
console.log(x.length);
`

And when you log x it will be 

`
[5, <Empty element>, 6,7,8]
`

Here although only four elements are there in an array but the four commas (second empty ,) causes array length to be 5.

`
let x=[5,6,7,8,]
`
and when you log x it will be

`
[5,6,7,8]
`

Here again array has four elements and four commas(,) but the array length is 4 and not 5 this is because last comma is ignored.

Note: While using array iterating methods like Map this empty element is always skip.

It's always recommended to have extra comma at the end as it improves the readability of code when you are working on big arrays.

`
let fruits=["Apple",
            "Banana",
            "Mango",
            "Jack fruit",
           ]
`
And also adding comma at end won't cause any merge conflict if multiple team members are adding elements to same array.

That's it for today!
Happy Coding.....
When NOT to BLOCKCHAIN?
Tags: beginners, blockchain, tutorial, productivity
Published: 2022-08-22 04:45:35

Hi this post is about when and where you're not supposed to use blockchain and it's practices, because implementing blockchain has it's own cost, something more than money!

Now, I'm not any expert but I've seen some projects that were using some blockchains to store transactions about something very unnecessary, this way user experience is degraded and based on that this post flows.

## When to use Blockchain?
Blockchains allow you to store something over them but at a cost, of course this cost varies from blockchain-to-blockchain and the time you're using it. 
[Layer-1](https://academy.binance.com/en/articles/what-is-layer-1-in-blockchain) blockchains like Ethereum, Solana, Avalanche, Polkadot, etc. are very expensive and it's better to use [Layer-2](https://academy.binance.com/en/glossary/layer-2) blockchains like [Polygon](https://polygon.technology/) for transaction. 
Blockchains enhance the security & trust factor for users, and being decentralised it reduces the chances of single point of failure.

![Correct](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xcz2opsof2rd76oq7hb.gif)

If there's an application that generates sensitive transactional data like an online banking application or the complete banking system, using blockchain makes sense as these transactions will then be stored over something very secured.

## When not to use Blockchain?
Blockchains are very expensive to use, some are even very slow to process the transaction, like compared to some other payment systems like Visa are way faster.
Adding blockchain transactions to basic things like commenting on a post, removing posts, or something similar will just make your application unreliable.

![Nah man](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pqnrplf1j3foy9tnx86m.gif)

Using blockchains require some knowledge and awareness about them, as a big blockchain application that is Crypto currencies & markets are already suffering from a underlying scammers & frauds, this awareness is very important for people who want to enter this new technology.

Make sure to have some consultants or experienced people around you before implementing any of these new technologies, as some of these new technologies have some releases that are not meant to be used in production.

_Hope it was worth reading._
The most important typescript trick you'll ever learn
Tags: typescript
Published: 2022-08-22 03:04:00

There's one thing typescript trick in particular that changed everything for me, and that's using the `extends` keyword in generic type parameters for the sole purpose of enabling inference:

```ts
function myFunctionInferred<Type extends Object>(v: Type) {
    return v;
}
function myFunctionNotInferred(v: Object) {
    return v;
}
```

This allows typescript to infer the type of var, meaning that you will get superior type knowledge and intellisense for free:

```ts
// v is given the type {something: string}
const v = myFunctionInferred({something: 'value'}); 

// v is given the type Object
const v = myFunctionNotInferred({something: 'value'});
```

Obviously we're getting a lot of additional information because of that type parameter! This is the simplest example possible and even it is potentially valuable.

What's even better is it opens up an entirely new world of free inferred type safety:

```ts
const someCoolObject = {
    keyOne: 'string value',
    keyTwo: false,
    keyThree: 5,
}

function myFunction<KeyType extends keyof typeof someCoolObject, ValueType extends typeof someCoolObject[KeyType]>(k: KeyType): ValueType {
    return someCoolObject[k] as ValueType;
}
```
This gives us great autocomplete, of course:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1nmgikkongobvkwixmw.png)

But much more interestingly, `v` has its type inferred based on the string that gets passed to the function!

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

🤯 That's so cool! And it's extremely useful in practice, you just have to get creative.
Be our beta tester and offer feedback
Tags: beginners, productivity, news
Published: 2022-08-22 03:55:00

Hi guys, we launched our first product,Gemoo beta now, and willing to get comments and  feedback from you. Please support us on https://www.producthunt.com/posts/gemoo-beta

What is Gemoo? Gemoo is where you organize videos by calendar, mindmap and custom view to keep teammates aligned, where you store and sort videos into various spaces, cards and topics to keep information clear and neat, where you record and capture ideas vividly to enlighten folks work together. Increase productivity now anywhere, anytime. 

Thanks again for your kind support and valuable feedback! cheers
Quick Guide on Primary, Outlined, and Ghost Buttons
Tags: react, typescript
Published: 2022-08-22 03:46:04

Most apps have three types of buttons: primary, ghost, and outlined. Let's make those buttons with React, TypeScript, and styled components so we can take them to a new project, change a few styles, and we are good to go!

Here's [a short video with an explanation](https://youtu.be/K5y_irnv34s), and [a demo with source code](https://react-toolkit.radzion.com/button).
Space Complexity | Measure your code performance: DSA 002
Published: 2022-08-22 01:46:00

In my [previous article](https://dev.to/snehendu_roy_/time-complexity-dsa-001-2oeh) I wrote about time complexity. A way to measure code with respect to growing size of inputs.

Time complexity is basically the relation between input size and running time

## Think About It
You obviously have apps in your phone. You are most likely to prefer the ones which takes less time to load the data and consumes less space. The factor which is used to measure the time is related to time complexity. But what about the space? How do we measure the space used by a code?

## Space Complexity
The relation between the input size and memory consumed in your system.

If you want your code to be optimized, it should take less time and less space too. So, here's where space complexity comes in place cause this is the way to measure how much space your code will take

## Calculating Space Complexity
The space used by a code depends on how many variables are used. The more variables, the more space used.

How much memory consumed by a code is directly proportional to how many variables assigned

```
sum = 0
i = 0
while (i < 24):
    sum += i
    i += 1
print(sum)
```
Here, there are 2 variables which we are assigning to the memory that is `i` and `sum`. Now, no matter the the value of sum increases the memory used by that one variable would be the same. So, the space complexity for this code will be O(1)

Now, let's take the example of arrays. It is basically a data structure which stores a list of elements. We will talk about arrays deeply later
```
def create_array(n):
    a = []
    for i in range(n):
        a.append(i)
    return a
```

In this function, we take integer `n` as an input. Then we create an array. Using  the loop we store the numbers 0 to n-1 in the array. Then we return it. So, basically what we are doing is, we are generating a series of numbers and storing it in an array. Here, with the increasing size of input, the space used by the code also increases. So, the space complexity for this code is O(n)

You can check the size here:


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

**`sys.getsizeof()` gives out the size of a particular function, class, variable etc. in python**

**I really hope you understood, if you didn't then feel free to criticize in the comment section. It's okay to criticize if I have wasted your valuable time. Also if you have any doubts, feel free to put it up in the comments section**