teleren/devto huggingface dataset:
Going Beyond the One Dimensional Resume
Tags: polywork, resumes
Published: 2022-03-25 06:14:23

---
title: Going Beyond the One Dimensional Resume
published: false
description: 
tags: 
- "polywork"
- "resumes"
cover_image: "https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ine12f74ic4qzzrprp3k.jpg"
published: true
---

"What do you want to be when you grow up?"

A common question asked of children. Yet when we think about it, while it seems like a mere innocent question, the question is framed in a way that really is more accurately represented as:

"What is the one thing you want to be for a large portion of your life?"

## We are more than our jobs

The truth is, we are more than our jobs. After all, in addition to working,  we are often in pursuit of other things that make us unique and interesting (even if we might not think so). 

In other words, though it may not seem that way at first glance, merely representing ourselves by our jobs presents us as one-dimensional. When in reality, our jobs often don't even begin to illustrate the rich tapestry that is our lives.

And though I've struggled with finding a way to illustrate this through resumes, LinkedIn profiles, and so forth, I wasn't able to do this properly until Polywork.

## Show off all the cool things you do

When it comes to most professional resumes and profiles, you're often limited to singling out your job as the most important thing during a timeline. Yet, with Polywork, I'm able to show not only what my job is, but other activities as well. 

This means that in addition to the standard boilerplate description of what one would expect a software engineer to have, I can illustrate other activities that make me unique such as:

- Creating courses on various platforms
- Speaking at conferences around the world
- Teaching workshops to people of varying skill levels
- Contributing to and maintaining a popular open source library

And those are just the activities related to my professional growth and development. If I had been using Polywork back in my go (i.e., baduk or weiqi) playing days, I would have loved to post all my go adventures and blog posts!

## Looking towards the future

The best thing about all of this is that this is just the beginning! There are many more features that Polywork has planned and they've got a proven track record with listening to what the community needs. In fact, I've loved the work so much that I even joined as a Polynaut Advisor! 

Anyhow, if you'd like to check it out, [sign up here] and use the VIP code `bencodezen`!
Getting Started with Redis Stack
Tags: redis, stack, docker, redisenterprise
Published: 2022-03-25 06:11:46

![redis stack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f4rslyi06yuswjiaahrw.png)

 

Redis Stack is an extension of Redis that adds modern data models and processing engines to provide a complete developer experience. Redis Stack provides a simple and seamless way to access different data models such as full-text search, document store, graph, time series, and probabilistic data structures enabling developers to build any real-time data application.

## Redis OSS vs. Redis Stack

In addition to all of the features of OSS Redis, Redis Stack supports:

- Queryable JSON documents
- Full-text search
- Time series data (ingestion & querying)
- Graph data models with the Cypher query language
- Probabilistic data structures

## Redis Stack License#

Redis Stack is made up of several components, licensed as follows:

- Redis Stack Server combines open source Redis with RediSearch, RedisJSON RedisGraph, RedisTimeSeries and RedisBloom is licensed under the Redis Source Available License (RSAL).
- RedisInsight is licensed under the Server Side Public License (SSPL).

## Which client libraries support Redis Stack?#

The following core client libraries support Redis Stack:

- Jedis >= 4.0
- node-redis >= 4.0
- redis-py >= 4.0

The Redis OM client libraries let you use the document modeling, indexing, and querying capabilities of Redis Stack much like the way you’d use an ORM. The following Redis OM libraries support Redis Stack:

- Redis OM .NET
- Redis OM Node
- Redis OM Python
- Redis OM Spring

To get started, [refer this guide](https://developer.redis.com/create/redis-stack/).
Shortcut/Shorten To Get Authenticated User ID in Laravel 8
Tags: laravel, php, authenticated, javascript
Published: 2022-03-25 06:11:43

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/shortcutshorten-to-get-authenticated-user-id-in-laravel-8

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)

In this post, I will share a simple example of **how to get the user ID of the authenticated user in Laravel 8.** Using the **auth()** helper function or **Auth** class in Laravel 8 you will easily get the user ID.

The question is how?

First, we know that **auth()->user()** or **\Auth::user()** we can access the authenticated user details from the users table.

So getting the user ID you can access it with the sample below:

```php
echo auth()->user()->id;

//or

echo \Auth::user()->id;
 
```

But we can shorten it by removing the **user()** function. Now it will become like this:

```php
echo auth()->id();

//or

echo \Auth::id();
```

Now the result of the code above is the same but the difference is your code is shorter.

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)

I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/shortcutshorten-to-get-authenticated-user-id-in-laravel-8 if you want to download this code.

Happy coding :)
How To Only Accept Images using HTML
Tags: html, how, laravel, php
Published: 2022-03-25 06:08:47

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/html/how-to-only-accept-images-using-html

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)

In this post, I will share how to only accept images or specific extensions using HTML. Using this method will help to add extra checking before uploading images to your server. We will use the **accept=""** attribute with the specified extensions that you want to allow to upload.

 

Here is an example of how to do it.

```php
<input type="file" name="file" class="form-control" accept=".jpg,.jpeg,.bmp,.png,.gif">
```

As you can see I added **.jpg, .jpeg, .bmp, .png, .gif** as value with accept attribute. Now using this you only show images with have this extension on a dialog box.

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)


I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/html/how-to-only-accept-images-using-html if you want to download this code.

Happy coding :)
How to Get File Extension on Uploaded file in Laravel 8
Tags: laravel, php, mysql, how
Published: 2022-03-25 06:06:19

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/how-to-get-file-extension-on-uploaded-file-in-laravel-8

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)

In this post, I will share how to get a file extension on uploaded files in Laravel 8. We usually get the file extension of an uploaded file to customize the file name and append the extension file.

I will share with you a simple example of how to do it.

First, create your post route.

```php
Route::post('/files/add', 'FilesController@store')->name('files.store');
```
Then in your controller let's create a store method.

```php
/**
* Store a newly created resource in storage.
*
* @param  Request  $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
    echo $request->file->extension();
}
```
Then next, your form view.

```php
<form action="{{ route('files.store') }}" method="post" enctype="multipart/form-data">
     @csrf
     <div class="form-group mt-4">
         <input type="file" name="file" class="form-control" accept=".jpg,.jpeg,.bmp,.png,.gif,.doc,.docx,.csv,.rtf,.xlsx,.xls,.txt,.pdf,.zip">
     </div>
     <button class="w-100 btn btn-lg btn-primary mt-4" type="submit">Save</button>
</form>
```

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)


I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/how-to-get-file-extension-on-uploaded-file-in-laravel-8 if you want to download this code.

Happy coding :)
Accessing environment variables in your custom workflow activity or plugin
Tags: powerplatform, dynamics365, csharp, powerapps
Published: 2022-03-25 06:01:02

#Introduction

Environment variables are a great way to store global variables that differ in each of your environment. Some common use cases are storing the AppID so it can be referenced in your flows or maybe a Sharepoint site url if you are storing data there. They’re stored on the Dataverse under the EnvironmentVariableDefinition and EnvironmentVariableValue table.

Whilst they’re built into Power Automate and you can access them relatively easy, if you need to reference them in a traditional plugin or custom workflow activity, you’ll need use FetchXML to retrieve them.

#Code Snippet

```csharp
protected override void Execute(CodeActivityContext context)
{

    try
    {
        IOrganizationServiceFactory serviceFactory = context.GetExtension<IOrganizationServiceFactory>();
        IWorkflowContext workflowContext = context.GetExtension<IWorkflowContext>();
        // Use the context service to create an instance of IOrganizationService.
        IOrganizationService service = serviceFactory.CreateOrganizationService(workflowContext.InitiatingUserId);

        string appID = GetEnvironmentVariable(service, "appID");

    }
    catch (Exception ex)
    {
        throw new InvalidPluginExecutionException(ex.ToString());
    }
}

private string GetEnvironmentVariable(IOrganizationService service, string envVariableName)
{

    string fetchXml = string.Empty;
    EntityCollection result = null;
    string envVariableValue = string.Empty;

    fetchXml = String.Format(@"<fetch version=""1.0"" output-format=""xml-platform"" mapping=""logical"" distinct=""false"">
            <entity name=""environmentvariablevalue"">
            <attribute name=""environmentvariablevalueid"" />
            <attribute name=""value"" />
            <link-entity name=""environmentvariabledefinition"" from=""environmentvariabledefinitionid"" to=""environmentvariabledefinitionid"" link-type=""inner"">
                <attribute name=""displayname"" />
                <filter type=""and"">
                <condition attribute=""displayname"" operator=""eq"" value=""{0}"" />
                </filter>
            </link-entity>
            </entity>
        </fetch>", envVariableName);

    result = service.RetrieveMultiple(new FetchExpression(fetchXml));

    if (result != null && result.Entities.Count > 0)
    {
        envVariableValue = result.Entities[0].GetAttributeValue<string>("value");
    }

    return envVariableValue;

}

```

#Explanation

So under Execute method, we have the standard boilerplate code to get the classes to be able to access the DataVerse.

Inside the GetEnvironmentVariable method is really where all the action is. It takes a parameter called envVariableName and then we make a call using FetchXML to retrieve the Environment Value with that name.
Announcing Pipy 0.30.0
Tags: pipy, pipyproxy, programming, productivity
Published: 2022-03-25 05:45:26

![Pipy 0.30.0 release](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/baht1nr568fvt547qkg9.jpeg)

[`Pipy`](https://flomesh.io) 0.30 is now available. It adds improvements to a number of areas including better documentation, more core controls, new filters, enhanced Cache and Metrics API, and some bug fixes. The Pipy Runtime API has expanded its coverage of SSL engines, asynchronus file read/write operations.

This release was truly a community effort and could not have been made possible without all of the hard work from everyone involved in active discussions and the Pipy project on GitHub.The Pipy community provides code submissions covering new functionality and bug fixes, documentation improvements, quality assurance testing, continuous integration environments, bug reports, and much more. Everyone has done their part to make this release possible! If you’d like to join this amazing community, you can find it on GitHub, Slack, and the Pipy discussion groups.

In the following sections, you will find a full list of changes included in this version.

## Core

* Add flow control mechanism for throttling any types of input
* Add asynchronous file operations
* Support OpenSSL engines

## Filters

* New filter tee
* New filter `throttleConcurrency`
* New filter `demux` (legacy `demux/mux` filters are renamed to `demuxQueue/muxQueue`)
* Filter `decodeMQTT` to support `protocolLevel` option
* Throttle filters support weak references as the account keys

## API

* Support *TTL option* for `algo.Cache`
* New method `stats.Metric.valueOf()` for querying current metric value
* `Data.from()` rejects input types other than strings

## Major bug fixes

* Fixed a bug where TLS requests could be stuck in the buffer
* Fixed a dead loop when trying to read folders in codebases
* Fixed some crashes when null is given to some cypto APIs
* Fixed a crash when retrieving stats.Histogram sub-metrics
* Fixed a bug where an *HTTP 304* response would lead to forever waiting on the connection
* Fixed a bug in `Data::shift_while()` that caused Dubbo decoding failures
* The size of Data wasn't changed accordingly in some cases when packing

## Build

* Support static linking to `libc`
* Support linking to external `zlib`

## Documentation

Tremendous growth in documentation coverage has been done since the last release in English, Chinese and Japanese.


We would like to thank each and every contributor who was involved in this release.
Setup load balancer for Cloud Run 🌐
Tags: gcp, cloudrun, loadbalancer
Published: 2022-03-25 03:07:40

In this article, I explain how to add load balancer to a Cloud Run service. The steps are complicated so I took screenshots for you guys.

# Prerequisite
Please create a Cloud Run service to apply restriction.

# Create a load balancer
Let's create a HTTPS load balancer. Go to `Load balancing` setting in `Network services`. Click `CREATE LOAD BALANCER`.

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

In the next page, you should select the type of your load balancer. Select `HTTP(S) Load Balancer`.

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

In the creation setting, let it keep as it is.

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

In the `New Classic HTTP(S) load balancer` page, you should setup the backend to catch traffic (Cloud Run), traffic routings and allowed protocols of traffics.

First, let's setup the backend. Click the drop down menu `Backend service & backend buckets` and `CREATE A BACKEND SERVICE`. You should not see any backend service if you haven't create any (my screenshot has one though).

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

First you should name it like `cloud-run-backend`, select `Server less network endpoint group` as the `Backend type`. Then click the drop down in the `New backend` section.

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

Name the endpoint group like `cloud-run-endpoint-group`, select your region and select `Cloud Run` and your Cloud Run service which you want to connect the load balancer to. Click `CREATE`.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xineyziie2bx8p8ebwm.png)

Next, let's setup Frontend. You do not have to setup `Host and path rules` if you want to route all traffic to your Cloud Run.

Give a name to your new frontend, select HTTPS as the protocol and click the `Certificate` drop down menu. (It can be HTTP but I do not recommend)

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

Please create a certificate for HTTPS traffic. Name it, select `Create Google-managed certificate` and input you domain you want to use.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7l29ttaylcwdnc9nfzjt.png)

# Domain setting
You're almost done. Go to the Load balancing page and find your IP.

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

Create `A` record with the IP address on your DNS setting (e.g. Google Domains, Go Daddy etc).

# Notes
The setting takes time to fully propagate to the system (e.g. 5 - 10 min). Please be patient 😝

Finished! This article helps you 🥰
How to Get File Size on Uploaded file in Laravel 8
Tags: how, laravel, php, javascript
Published: 2022-03-25 05:35:35

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/how-to-get-file-size-on-uploaded-file-in-laravel-8


[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)

In this post, I will share a short solution on how to **determine the file size on uploaded files in Laravel 8.** Sometimes we need to check first the user file uploaded to our server if meets our standard size before saving it.


So here's how should do it.

First, create your post route.

```php
Route::post('/files/add', 'FilesController@store')->name('files.store');
```
Then in your controller let's create a store method.

```php
/**
* Store a newly created resource in storage.
*
* @param  Request  $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
    echo $request->file->getSize();
}
```
Then that's it you will know if what is the byte size of your file and convert it to MB or KB.

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)


I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/how-to-get-file-size-on-uploaded-file-in-laravel-8 if you want to download this code.

Happy coding :)
How to Get Client Mime Type on Uploaded file in Laravel 8
Tags: how, laravel, php, javascript
Published: 2022-03-25 05:31:34

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/how-to-get-client-mime-type-on-uploaded-file-in-laravel-8


[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)


In this post, I'm sharing how to get the client mime type on the uploaded file in Laravel 8? Sometimes we need to determine if what is the mime type of your uploaded file and get the info and save it to your database. Or validate if the mime type of that file is allowed to save on your server.

 

So here's how should do it.

 

First, create your post route.


```php

Route::post('/files/add', 'FilesController@store')->name('files.store');
```

Then in your controller let's create a store method.



```php
/**
* Store a newly created resource in storage.
*
* @param  Request  $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
    echo $request->file->getClientMimeType();
}
```

As you can see I call the `getClientMimeType()` if you upload a PNG image. The result should be like this:

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)

That's pretty much it. I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/how-to-get-client-mime-type-on-uploaded-file-in-laravel-8 if you want to download this code.

Happy coding :)
How to Delete Files from Public Folder in Laravel 8?
Tags: how, laravel, php, javascript
Published: 2022-03-25 05:28:34

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/how-to-delete-files-from-public-folder-in-laravel-8

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)


In this post, I will on **how to delete files from the public in Laravel 8.** Usually, we need to delete the file uploaded like the user's thumbnail when changing it by the user. So that our server will not be full of useless files. So if you have a task related to this scenario this is for you.



Here is a simple solution on how to do it. In your controller create your action method that handles the delete and insert the code below.


```php
public function delete()
{
    if( File::exists(public_path('file/image.jpg')) ) {
        Files::delete(public_path('file/image.jpg'));
    } else {
        echo 'File doesn't exists';
    }
}
```

Note: Don't forget to import the **File** class to your controller.

[![Advanced Laravel SAAS Starter Kit with CRUD Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyjyev8tz3r8vi2w3on1.png)](https://1.envato.market/5g5QAn)

[Advanced Laravel SAAS Starter Kit with CRUD Generator - GET YOUR COPY NOW!](https://1.envato.market/5g5QAn)


I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/how-to-delete-files-from-public-folder-in-laravel-8 if you want to download this code.

Happy coding :)