teleren/devto huggingface dataset:
The KALKI Avatar
Tags: beginners
Published: 2023-06-05 15:42:24

<p style="text-align: left;"><span style="background-color: #fcff01; font-family: georgia; font-size: x-small;"><b>Kalki Avatar:</b></span></p><p style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgydekPLu26ISzYY37nwQaUSvEIchGS69jbyaD1zHK0wksxKKtGSdssf3XJkvTKxqQvtN3bJUNe1lurbS46_t2ABcjmBuz7Tn0OmKc3i4QINYd6VzIp5ayAC1AMlFgbYIrdvzi6Bz_QfxRzmqyMg0aD7A1lY4Fs_kNQwWghjnGoaLoPBkPviqC-MrYw-Q" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: georgia; font-size: x-small;"></span></a></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifYJ6UDF6H3vKLE4Ko1uXsjSfngFXD-ZMpnNeOFTOzVB2CK9kBxRxu3qTRHMhQtd8E0fitryqcxv5ngDXpMY2Ai811UdWzXIFSF7jteOY2orvePFiwlWhRCH2C81hTKL1OGQZh_ZrT2-i8kxfLkii6vf_IPhizhWVh3dbmRfUeftyDg7Lqw-ihH6ZsZg/s1600/Add%20a%20heading.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="630" data-original-width="1600" height="137" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifYJ6UDF6H3vKLE4Ko1uXsjSfngFXD-ZMpnNeOFTOzVB2CK9kBxRxu3qTRHMhQtd8E0fitryqcxv5ngDXpMY2Ai811UdWzXIFSF7jteOY2orvePFiwlWhRCH2C81hTKL1OGQZh_ZrT2-i8kxfLkii6vf_IPhizhWVh3dbmRfUeftyDg7Lqw-ihH6ZsZg/w346-h137/Add%20a%20heading.png" width="346" /></a></div><p></p><p style="text-align: left;"><span style="font-family: georgia; font-size: x-small;">In Hinduism, Kalki Avatar is considered to be the tenth and final avatar of Lord Vishnu, who is believed to appear at the end of the Kali Yuga (the last of the four Yugas or ages in Hinduism) to restore righteousness and order in the world. According to Puranic literature, Kalki Avatar will appear on a white horse with a sword in his hand, and will defeat the evil forces that have taken over the world.</span></p><p style="text-align: left;"><span style="font-family: georgia; font-size: x-small;">The Puranas, which are a collection of ancient Hindu texts, describe the Kalki Avatar in detail.</span></p><p style="text-align: left;"><br /></p>

[Read More](https://hungryworldera.blogspot.com/)
HTTP probe failed with statuscode: 500
Published: 2023-06-05 05:09:58

I have developed the grpc api using the .NET 7 with dapr and I'm trying deploy the api in the minikube kubernets cluster in my local, all working till the time I have set to dapr.io/sidecar-liveness-probe-delay-seconds,after this time delay deployment is getting failed with Liveness probe failed: HTTP probe failed with statuscode: 500 and still daprd status is showing as false. below is the my deployment yaml file and the dapr config file, I don't know what I'm missing and what is the wrong. I tried multiple solution didn't work, if some one can help to fix this issue will be much appricaited.

daprd container ready status is showing as false in kubernets and deployment getting failed with Liveness probe failed: HTTP probe failed with statuscode: 500

**deployment.yaml file**

```
apiVersion: apps/v1
kind: Deployment
metadata:
  name: authservice
  labels:
     app: authservice
  spec:
    replicas: 1
    selector:
      matchLabels:
        app: authservice
  template:
    metadata:
      labels:
        app: authservice
  annotations:
    dapr.io/enabled: "true"
    dapr.io/app-id: "authservice"
    dapr.io/app-port: "8087"
    dapr.io/app-protocol: "grpc"
    dapr.io/enable-api-logging: "true"
    dapr.io/enable-app-health-check: "true"
    dapr.io/sidecar-liveness-probe-delay-seconds: "2000"
    dapr.io/sidecar-readiness-probe-delay-seconds: "3000"
    dapr.io/log-level: "debug"
    dapr.io/app-health-check-path: "/v1.0/heathz"
    dapr.io/config: "loginappconfig"
spec:
  containers:
  - name: login
    image: shakirisa/authservice:8
    # env:
    # - name: APP_PORT
    #   value: "3000"
    ports:
    - containerPort: 8087
    imagePullPolicy: Always
```

**dapr-config.yaml file**

```
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
   name: loginappconfig
namespace: dapr-system
spec:
   tracing:
   samplingRate: "1"
   zipkin:
      endpointAddress: "http://zipkin.dapr-system:9411/api/v2/spans"
```

Below is log of the daprd container in dapr dashboard.


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

Below is the kubernets application pod's dashboard.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h8pkpxk2e4muhadaghjd.png)
How an agency creates killer sites, apps, and digital experiences with Directus + Nuxt
Published: 2023-06-05 15:30:12

---
title: How an agency creates killer sites, apps, and digital experiences with Directus + Nuxt
published: true
description: I Made This | ft. Heinrichs and Heinrichs
tags: 
# cover_image: https://marketing.directus.app/assets/d559999b-9de3-4ac2-a8ca-6c5724a6cdd3?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjFhOWFiOTVhLTkzYmMtNDkwOC1hZjg1LTBkNDJiYjZlNmFhNiIsInJvbGUiOiJhZmQzNzZjZS1kNTJlLTRhMTMtOGIwOS01Mjc1YTgxOTU4NmMiLCJhcHBfYWNjZXNzIjp0cnVlLCJhZG1pbl9hY2Nlc3MiOnRydWUsImlhdCI6MTY4NTk3ODY1MywiZXhwIjoxNjg1OTc5NTUzLCJpc3MiOiJkaXJlY3R1cyJ9.0qmwkBndnBfalLNR-GGAiocUi9XKMk_8zz1mCt42oaU
# Use a ratio of 100:42 for best results.
# published_at: 2023-06-05 15:22 +0000
---
{% embed https://www.youtube.com/watch?v=Xps0b_Qu7sQ %}

Erwin and Uwe are designers who got into development after being told "it wasn't possible" by those coding up their designs.

Now they create wonderfully interactive sites, apps, and digital experiences for their clients using their preferred tech stack of Directus (backend / headless CMS) and @nuxt_js (frontend).

In this episode of I Made This, they walk Bryant through one of their recent projects - a engineering job listing and talent recruitment site.
The First Inacarnation of Lord Vishnu - The Matsya avatar
Published: 2023-06-05 15:27:41

<p><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx3CvENrXscYH8of6CtWvPN14IrBSbsNEsakUcAPsDOcDZQGlccb7Tz4TTuXUoPI_EXgJ2RxdxITU664aS46CPaEUL-SjFvdYppxBlSCeGHoKnGx5UH9dmzZHwn9HLlM6PbHnM7Fvdyk2YBfiwDCR1autUg1U-OElE_zaLMbwYZNk3ErlpfYnGvedWlA/s1600/Matsya%20Avatar.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="630" data-original-width="1600" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx3CvENrXscYH8of6CtWvPN14IrBSbsNEsakUcAPsDOcDZQGlccb7Tz4TTuXUoPI_EXgJ2RxdxITU664aS46CPaEUL-SjFvdYppxBlSCeGHoKnGx5UH9dmzZHwn9HLlM6PbHnM7Fvdyk2YBfiwDCR1autUg1U-OElE_zaLMbwYZNk3ErlpfYnGvedWlA/w457-h180/Matsya%20Avatar.png" width="457" /></a></div><p>Matsya Avatar is one of the ten principal avatars of Lord Vishnu. It is a fascinating tale that shows Lord Vishnu's divine power and his role as the preserver of our universe.&nbsp;</p><p><b style="background-color: #fcff01;">The Story</b></p><p>Long ago, during the Satyug, there lived a king named Manu. He was a virtuous and pious ruler who deeply worships Lord Vishnu.</p>

[Read More](https://hungryworldera.blogspot.com/2023/06/matsya-avatar.html)
Powershell - Get Logged On Users
Published: 2023-06-05 15:18:29

To get the names of users that are logged into a machine via Powershell, use this:

```
query user
```

To query another machine, use this whilst replacing the #'s with the machine number that you wish to query:

```
query user /server:#######
```

The results will show the usernames of those who are logged into the machine as well as who is currently active.
Mock your service as fixture in pytest
Tags: python, testing, unittest
Published: 2023-06-05 15:14:20

## Summary
Mock all your service's method with `patch`
## code
assume you have a jwt service
```py
# jwt_service.py

class JWTService:

    @classmethod
    def create_access_token(cls, email: str) -> str:
        ...

    @classmethod
    def verify_access_token(cls, access_token: str) -> Dict[str, Any]:
        ...

    @classmethod
    def decode_access_token(cls, access_token: str) -> Dict[str, Any]:
        ...

    @classmethod
    def revoke_access_token(cls, access_token: str) -> None:
        ...

    @classmethod
    def get_subject(cls, access_token: str) -> str:
        ...
```
you can mock it as fixture like this
```py
# conftest.py

@pytest.fixture
def mock_jwt_service():
    with patch.object(JWTService, 'decode_access_token', return_value='123456778'), \
            patch.object(JWTService, 'verify_access_token', return_value=True), \
            patch.object(JWTService, 'create_access_token', return_value='999999999'), \
            patch.object(JWTService, 'get_subject', return_value='example@cc.cc'), \
            patch.object(JWTService, 'revoke_access_token', return_value=None) as m:
        yield m
```
then you can simply use it in all your tests
```py
def test_add_article(mock_jwt_service):
    ...
```
so simple, isn't it?
Powershell - Enable/Disable Internet Adapters
Tags: powershell, tutorial, netadapter, windows
Published: 2023-06-05 15:13:24

Run a Powershell command prompt as your Admin account and run:

```
Get-NetAdapter
```

Make note of the name of the adapter you want to disable/enable and then type either of the following depending on what you need - substituting the part in &lt;ADAPTER_NAME&gt; with the name of the adapter you wish to change:

```
Disable-NetAdapter -Name "<ADAPTER_NAME>" -Confirm:$false

Enable-NetAdapter -Name "<ADAPTER_NAME>" -Confirm:$false
```
What are your Goals for the week of June 5?
Tags: discuss, motivation
Published: 2023-06-05 15:12:39

## What are your goals for this week?

- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week? Any suggestions of events to attend?
- Did you meet your goals last week?


I'll start with how I did last week.

### Last Week's Goals

- [:white_check_mark:] Continue Job Search.
- [:x:] Blog. * Spent that time on Photos and cleaning.
- [:white_check_mark:][:x:] Code Challenges/Project work. Minor site updates and a CSS Challenge. No project work.
- [:white_check_mark:] Process more photos add them to a site.
- Events
  * [:white_check_mark:] Attend Virtual Coffee(VC) Thursday. 
  * [:white_check_mark:] Other VC events if I can. * Attended a CSS Battle and a lunch and learn on React.
  * Attended a couple Zoom and LinkedIn events.
- [:white_check_mark:] Organize Office. * Background of office is done, reclaimed some space. 


### This Week's Goals

- Continue Job Search.
- Blog
- Code Challenges/Project work
- ~~Process more photos and add them to a site.~~ This was done last week. Copy and paste is dangerous. So is lack of Caffeine. 
- Events
  * Attend Virtual Coffee(VC) Thursday.
  * Attend Virtual Coffee(VC) Tuesday. It's 8am my time. It's during school travel time but now that's it's summer, no school so if I'm social enough at 8am I could make it. 
  * Other VC events if I can.
  * Attend FrontEnd Test Fest Wednesday.
- Organize Office: Clean 2nd desk, Which is mainly a LEGO build area. 

### Your Goals for the week


You've read my goals so I'll throw that question back to you.

What are your goals for the week?

```html
-$JarvisScript git push
```
Powershell - Get Hard Drive Size and Free Space
Tags: powershell, windows, hdd, tutorial
Published: 2023-06-05 15:10:52

Run the following in a Powershell window

```
$disk = Get-WmiObject Win32_LogicalDisk -Filter "DeviceID='C:'" | Select-Object Size, FreeSpace

Write-Host ("{0}GB total" -f [math]::truncate($disk.Size / 1GB))

Write-Host ("{0}GB free" -f [math]::truncate($disk.FreeSpace / 1GB))
```


To get a different drive letter, just change the C: in _"DeviceID='C:'"_ to whatever drive you want.
Understanding insertion sort algorithm
Tags: javascript, algorithms, sorting, tutorial
Published: 2023-06-05 14:50:05

In our day-to-day JavaScript programming, when we use the **.sort()** method, there's a whole algorithm running behind the scenes. However, it's unlikely that Insertion Sort is the algorithm being used. But why is that?

- There are various sorting algorithms available, such as _Insertion Sort, Quick Sort, Merge Sort, Selection Sort, Bubble Sort, and many others_. Each of them has different time and space complexities.

Insertion Sort happens to be one of the less efficient ones, but why?

In terms of complexity, Insertion Sort has a time complexity of **O(n²) in most cases** and a **space complexity of O(1)**, which is good. However, considering a time complexity of this magnitude, there are sorting algorithms that achieve a time complexity of O(n log n), which is better than O(n²).

**_So, how does this algorithm work?_**

1. Initially, we consider the first element of the list as a sorted list with a single element.

2. Next, we move on to the next element in the unsorted list.

3. We compare the current element with the elements in the sorted list, from right to left, until we find the correct position to insert the element.

4. During the comparison, if an element in the sorted list is greater than the current element, it is shifted one position to the right to make space for the insertion.

5. We repeat steps 3 and 4 until all elements in the unsorted list are inserted into the sorted part of the list.


- This process continues until all elements are in the sorted list, resulting in a completely ordered list. Insertion Sort is an efficient sorting algorithm for small lists or partially sorted lists. However, its performance significantly deteriorates for very large lists.

Below, I provide an example implementation of this algorithm, including an auxiliary function called **swap()** responsible for swapping elements.

![Code example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zuxtjj4awe1czknzypwf.png)
I am Full Stack Developer
Tags: webdev, react, python, javascript
Published: 2023-06-05 14:49:55

Hello.

While working as a Web Developer I have strong knowledge and enough experience with different JavaScript, PHP and libraries as well frontend and backend development, was able to complete more than 10 complex websites and web mobile applications using them.

Here are my skill sets for your project:

- React.js, Redux, Next.js, Angular, React Native, Flutter
- JavaScript ES7+, TypeScript, RESTful API
- Wordpress, Shopify, OpenCart, PHP, Webflow, OpenAI, ChatGpt
- HTML5, CSS3, SCSS, SASS, Bootstrap, Tailwind CSS,
- Golang, Python, Elixir, Express.js, Node.js, Laravel, .NET
- MySQL, MongoDB, GraphQL, PostgreSQL, Firebases
- AWS Lambda, AWS Amplify AWS, Linux

I am really experienced remote developer, who has more than 6 years of remote experience, because of that, I am really comfortable with team environment and Agile Software development methodology.

Waiting for your reply.

Best Regards.
Defining goals and base functionality!
Tags: devjournal, beginners
Published: 2023-06-05 14:16:07

Let's start by putting to paper what the app is supposed to do. We'll start by what it is and then list out what is has to do, and what it will not do. What problems will it solve? What is the base approach to solving them?
Regardless of what is written at the start, no plan survives contact with the enemy and the app is bound to change with time. But having a good idea of it's **scope** is important.

## This app is a workout tracker!
It is meant to be used with the [Hybrid Calisthenics](https://www.hybridcalisthenics.com/) programme (HC). It will have pre-created exercises.

As per HC, exercises have progressions which are variations on the exercise itself (actual form, not reps/sets). As such, HC groups all push-up related exercises into a Push-Up group, and then their variations (knee push-ups, wall push-ups, etc.) as Progressions.


## Goals
The app will have/allow:

1. [CRUD](https://www.codecademy.com/article/what-is-crud) for exercise groups, their progressions, and the difficulty levels for each progression. Progressions will always have three difficulties (amount of sets + reps): Easy, Medium and Hard.
2. CRUD workouts. Workouts are sets of exercises.
3. CRUD reactions to past workouts. The user should be able to fill in if they were able to succeed or, if not, how far they got into their workout.
3. Schedule workouts/single exercises and react to workouts on a calendar. The calendar is meant to be the main UI of the app.
3. User authentication and verification (login system) with Role-based functionality. Normal users have access to their own stats and base app functionality. An Admin role will be created that can see statistics for everyone (anonymously) but will have no real power over the users.
4. See statistics via tables and graphs of how workouts are going overtime.

These systems all seem to interconnect even if slightly, so designing the DB schema should be simple enough :)
The method to my madness
Published: 2023-06-05 14:46:35

---
title: The method to my madness
published: true
date: 2023-06-05 14:42:26 UTC
tags: 
canonical_url: https://blog.toheeb.com/the-method-to-my-madness-cliiyql83000h09ml9s8qh3pq
---

Get out to get them to get in.

I'm building an independent web. Starting with one site, my site. With each site being able to do whatever you can do on third-party sites. I want you to be able to use Twitter from your site, Gmail from your site, Bank or Commerce transactions from your site, and any other thing possible the web can offer.

[www.toheeb.com](http://www.toheeb.com/en/journey) is where that independent web begins. Pending the completion, I'm depending on a lot of services. Including blog.toheeb.com to tell the story. This domain is only a facade of a sub-domain on hashnode.com. These stories are automatically shared to dev.to as drafts and manually shared to Twitter as screenshots. Zohomail powers the email and the list goes on. This is me getting out to get you to get in when it's ready.

My madness is for you and me to own our web respectively. Not them owning us. TO the future of a completely independent web!
Print from Powershell
Tags: powershell, printing, tutorial
Published: 2023-06-05 14:28:14

Run this in Powershell - substituting the &lt;NAMEOFPRINTER&gt; with the name of a printer installed on your machine (or remove it entirely to use default printer):

```
'Hello World' | Out-Printer '<NAMEOFPRINTER>'
```
---

To print a specific file, it's:

```
Get-Content 'C:\MyNote.txt' | Out-Printer '<NAMEOFPRINTER>'
```
---
Can also be used within [PSEXEC](https://learn.microsoft.com/en-us/sysinternals/downloads/psexec) to send prints from remote computers - obviously you'll need to specify the name of a printer which is actually installed on that computer.
Thinking In Abstractions
Published: 2023-06-05 14:24:45

---
title: Thinking In Abstractions
published: true
description: We rely on abstractions in everyday life whether we realise it or not. We create even more when writing code and should be mindful of their purpose.
tags: 
cover_image: https://www.m11r.dev/static/494ebef7ec8ed46820ecb9e50865c2c1/ac99c/lily-banse-food-cover.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-06-05 14:19 +0000
---

This was originally posted on my own site [here](https://www.m11r.dev/blog/thinking-in-abstractions/)

I love food and cooking and am fond of metaphor and non-technical analogies.

When I order food at a restaurant I look at the menu, place my order with the staff and later my food magically appears. What cookware was used? What brand of oven? Who is their supplier of salt and pepper? What knife? All unimportant details to me on the other side of that kitchen door.

Abstractions aren't just for other developers, they're more importantly for our end users. My user can click a button and know that their information will be saved for later access. I can order Salmon at the restaurant and know I'll later receive Salmon. Does the user care whether I'm saving their data in MongoDB or PostgreSQL? Do I (and should I) know which chef cooks my dish? Which knives they used? Which pan?

As developers we clearly work in abstractions all day. As users of high level languages we're blessed to be higher up in that stack of abstractions which leaves us to focus on the feature at hand and not about how it's represented lower down that stack. But it's just that: a stack. Each abstraction built on top of previous ones. There's too much to hold in our heads at once, that's why abstractions exist, they're literally the simplified representation of how to perform more complex work. That work itself is hidden from us unless we choose to dig in and look at it. It should be optional. Behaviour implemented in functions, classes, other files, libraries, external APIs, some provided by the environment or browser, some created by ourselves during development.

Maintainable software is built on the boundaries and clarity of these abstractions, how they cross over and how they interact.
Command Prompt - Set Timezone
Tags: cmd, timezone, tutorial, windows
Published: 2023-06-05 14:09:26

Copy the following code into a Command Prompt window - when run it will change the timezone of the computer:

```
TZUTIL /s "GMT Standard Time"
```
Naturally, you can change this to any timezone, not just GMT. To see a list of all available timezones, use:

```
TZUTIL /l
```

This will print out a list of them all.
Command Prompt - Dealing with Tasks
Tags: commandprompt, cmd, windows, tasks
Published: 2023-06-05 14:06:11

We can use commands to find out what tasks are running on a machine. Also note, all of these can be run using PSEXEC to a remote machine (some may require connection via PSEXEC using your admin account also).

---

## See a list of tasks

First, open Command Prompt and type:

```
tasklist
```

This will return results in a crude looking table showing you the Image Name (filename of the application), it's PID (or ID Number), the session name, number and how much memory it is currently using. Only the image name and PID are relevant here.

---

## Export task list to text file

This will dump a huge list of tasks that the computer is currently running (the same list you'd find in Task Manager). The formatting though leaves something to be desired, so you may wish to dump the results to a text file like so:

```
tasklist > c:\tasklist.txt
```
---

## Find a specific task

Next up, we can search for individual tasks by using the below, remember seeing the Image Name earlier? This example will return all found results for Outlook:

```
tasklist /fi "imagename eq outlook.exe"
```
You can also do a partial search using something like:

```
tasklist /v | find "Note"
```
Add a /i at the end to make it case-insensitive too!

---

## Kill a task

Also remember earlier we saw that the tasklist results produced a PID for each task... we can kill a task by using the following:

```
taskkill /F /PID ####
```

If we replaced the #### with the actual PID number of the task we want to kill, it will work. Although, be careful as it will force close the application without saving anything or backing it up.

---

> Useful to Know!
> All the below can be run through [PSEXEC](https://learn.microsoft.com/en-us/sysinternals/downloads/psexec) too for dealing with tasks on a remote machine.