teleren/devto huggingface dataset:
Web Services Description Language
Tags: webdev, beginners, programming, api
Published: 2022-12-13 22:26:58

Hi! In a previous article, I wrote about SOAP based on the use of a file with API methods and rules. And now I want to say something about the standard of these files.

WSDL is an XML-based language that is used to describe the functionality offered by a web service. It defines the operations that a web service can perform, as well as the data types and parameters used in those operations.

WSDL plays a critical role in the development of web service applications, as it provides a common language that can be used to describe the functionality of a web service. This makes it possible for different applications to communicate and exchange data with each other, regardless of the programming languages and platforms they are built on.

One of the key benefits of WSDL is that it allows developers to create web services that can be easily discovered and accessed by other applications. This is because WSDL defines a standard way of describing the functionality of a web service, which can be used to automatically generate the necessary code and integration instructions.

Another benefit of WSDL is that it allows developers to easily extend and modify the functionality of a web service. This is because WSDL is written in a flexible and extensible XML format, which makes it possible to add new operations and data types without breaking existing applications.

Additionally, WSDL allows developers to specify the transport protocols and message formats that a web service uses, which helps to ensure that web services are interoperable and can be easily integrated with other applications. This is important for building scalable and reliable web service applications.

WSDL is a critical language for the development of web service applications. It allows developers to describe the functionality of a web service in a standard and extensible way, which makes it possible for different applications to communicate and exchange data with each other. Its ability to support various transport protocols and message formats makes it a valuable tool for building interoperable and scalable web service applications.

-----

Photo by <a href="https://unsplash.com/@hishahadat?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Shahadat Rahman</a> on <a href="https://unsplash.com/s/photos/xml?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Programming Contest Top 10 Tips And Tricks
Published: 2022-12-13 22:23:18

1. Practice, practice, practice: The more you practice, the more familiar you will become with the types of problems you are likely to encounter in a programming contest.

2. Choose the right programming language: Choose a programming language that you are comfortable with and that is well-suited to the types of problems you will be solving.

3. Work on your problem-solving skills: In a programming contest, it's not just about writing code – it's also about solving problems and coming up with creative solutions.

4. Understand the problem statement: Take the time to carefully read and understand the problem statement. Make sure you understand what the problem is asking for and what your code needs to do to solve it.

5. Plan your approach: Before you start writing code, take a few minutes to plan out your approach to solving the problem. This will save you time in the long run and help you avoid making mistakes.

6. Test your code: As you write your code, be sure to test it to make sure it is working correctly. This will help you catch any errors before you submit your solution.

7. Collaborate with others: Programming contests are often collaborative events, and it can be helpful to work with others to solve problems and discuss approaches.

8. Stay focused and stay calm: Programming contests can be stressful, but it's important to stay focused and not let the pressure get to you. Take regular breaks to stay fresh and avoid burnout.

9. Don't be afraid to ask for help: If you get stuck on a problem, don't be afraid to ask for help from the contest organizers or other participants.

10. Have fun: Above all, remember to enjoy the experience and have fun! Programming contests can be a great way to challenge yourself and learn new skills.
New .NET MAUI Release
Tags: dotnet, dotnetmaui, microsoft
Published: 2022-12-13 22:11:03

In my last post, I wrote about the .NET MAUI CommunityToolkit and more specifically, the MediaElement Library (which is currently a preview version).

I also noted, that the Windows target depends on WindowsAppSDK version 1.2.x where as most Visual Studio SKUs still preinstall version 1.15.x. Since this results in a conflict, the only simple solution was to disable the Windows target if you wanted to try out CommunityToolkit.Maui.MediaElement.

However, today, [Microsoft released an update on .NET MAUI](https://github.com/dotnet/maui/releases/tag/7.0.52) for both .NET6 and .NET7 with the latter focussing on updates on all levels including the WindowsAppSDK to version 1.2.221109.1.

So go ahead and update your Visual Studio to version 17.4.3 to get the latest bits!
Day 662 : Recipe
Tags: hiphop, code, coding, lifelongdev
Published: 2022-12-13 22:08:26

_liner notes_:
- Professional : Met with my manager and I showed him a demo of a new Web Component I'm working on and some other stuff. It was good to catch up.

- Personal : Last night, I tried the suggestion from another developer as another possible solution for my side project. It didn't work. I watch a couple of "Bleach" episodes and went to sleep. The new "Bleach" series is pretty dope! They haven't missed a beat since the last episodes aired like 10 years ago.

![View into a mountain valley with a mountain range going into the distance with sun rays shining through the clouds in the sky.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hl60dzzy7bawy2sjvpa.jpg)

Going to get to bed early. I cut my hair and the weather started getting colder which is perfect recipe for me getting sick. haha Going to see if there are any anime episodes I'm behind on. Maybe look into some upcoming projects I want to get into when I'm off again next week.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube FzpWTp26oQU %}
SPO Project : Auto-vectorization with iFunc - Stage 1
Published: 2022-12-13 21:35:14

## "ifunc"
ifunc was introduced for developers to create programs that can use advance SIM, SVE, SVE2 i.e. create multiple implementation of a function and select amongst them at runtime using a resolver function.

The resolver function is used to determine between the different implemented functions based on the system's architecture. i.e. to determine the appropriate function during runtime.

## Auto-vectorization:
... where a computer program is converted from a scalar implementation, which processes a single pair of operands at a time, to a vector implementation, which processes one operation on multiple pairs of operands at once.


Automatic vectorization have three major implementation of SIMD instructions for AArch64, Advanced SIMD, SVE and SVE2. Some modern gcc compiler have option to choose from one of these implementations at runtime using the function ifunc. 

**Learn about ifunc and autovectorization to implement the project.

The purpose of the created tool is:

Given a function create and implement an ifunc resolver.Then automatically compile the function using auto-vectorization for multiple SIMD systems.Or the runtime compiler will choose one from them and generate a single output file.

Call the program in place of compiling. In between assembly and linking phase.

## The language I will be using: Python
I am comfortable coding and understanding pyton code and I know python has many library that I can use. The reason I an not using C or C++ is that I am not sure I can complete the project if I face any troble while working with C++. But at last I decided to work with C

I plan that my code produces 3 builds successfully and automatically select a build that is appropriate with the hardware. Then execute the build. Should get the output. Different output can be used.

The program will accept 2 files one will be the main file and other will be the argument. For testing case function.c file which will contain a single function which will get vectorized.

The tool will only work on aarch64 system. So the testing will be done on the israel machine. Will focus on  three SIMD implementations: ASIMD, SVE and SVE2.

Steps:
Get argument using sys i.e. function.c file.

Linker function
Functions for different modules
will figure out in the future.

## Challenges:
Rename the functions and add those to ifunc c file and header file
Calling the linking stage multiple times during building for different modules.
SPO Project : Auto-vectorization with iFunc - Stage 3.2- after due
Published: 2022-12-13 21:34:47

## Testing:
Root dir:

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

Running 
```
python3 tool.py --inputfile function.c
```
Missing tool.py running screenshot.

Some last min error occurred due to multiple file inputs I will blog on diff blog if it is past 11:59.
 
### ls:

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

### running the executable which has adjust chanels with 
arguments test/input/bree.jpg 1.0 3.0 5.0 and test/output/breelaa.jpg
We can run this on israel machine which is an armv8
```
./main tests/input/bree.jpg 1.0 3.0 5.0 tests/output/breelaa.jpg
```

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

Emulating SVE2 system using qemu-aarch64:
Runnig with same arguments:


```
 qemu-aarch64 ./main tests/input/bree.jpg 1.0 3.0 5.0 tests/output/breel_qemu.jpg
```

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

The output are the same but the built implementation are different.
That does not mean that our function_sve2.o and function_asimd.o file are the same. I was working on comparing the .o files for diff arch using filecmp but no results. Still have written some code.

## How to use the tool:
Run the tool which will accept the funciton.c file as an argument and produce the main exe file along with the functions it may use.
```
python3 tool.py --inputfile function.c
```

There are 2 test files (images) provided by the professor so we could use any of them.
```
./main tests/input/bree.jpg 1.0 3.0 5.0 tests/output/breelaa.jpg
```

The main executable will take the bree.jpg file and modify it based on the chosen function. So the first time we run the exe without qemu-aarch64 the asimd_adjust_chanels() function will be chosen using the iFunc resolver. 
The output file should be stored in test/output dir. ## error

I forgot to share the screenshot of the modified tree after running the command.

The output image will be different from the original image.


## References:
Help was provided by Naziur Khan.

Passing multiple arguments:
https://stackoverflow.com/questions/15753701/how-can-i-pass-a-list-as-a-command-line-argument-with-argparse

Using subprocess module: used when running external os system command and manuplate the command
subprocess.Popen() returns a exit code.
https://docs.python.org/3/library/subprocess.html

Extract a function writen in c from a file:
https://stackoverflow.com/questions/55078713/extract-function-code-from-c-sourcecode-file-with-python

Filecmp:
https://www.geeksforgeeks.org/python-filecmp-cmpfiles-method/
Did Confluent Cloud Help Michelin?
Tags: webdev, cloud, cloudnative, cloudskills
Published: 2022-12-13 21:15:47

                    

##  Did You Know!
**Confluent Cloud** is the best place to stream apache Kafka clusters hosted on AWS, Azure, and Google Cloud. Michelin chose Kafka as the foundation for its real-time inventory management system. But maintaining Kafka infrastructure in-house proved to be operationally complex, time-consuming, and expensive. Michelin implemented Confluent Cloud’s fully managed Kafka service to streamline Kafka operations, free up cash flow, and achieve the scalability and resiliency needed to power its global inventory management system in the cloud. Reduced operational burden and increased engineering velocity by offloading heavy Kafka infrastructure maintenance. Join us now and have your data managed by the Confluent Cloud.

[](https://www.confluent.io/get-started/?utm_campaign=seo_podcasts&utm_source=seo&utm_medium=bl)
What makes artificial intelligence special?
Tags: ai
Published: 2022-12-13 20:57:27

There are a few key things that make artificial intelligence (AI) special. One is its ability to learn and improve over time. Unlike traditional computer programs that rely on explicitly programmed instructions, AI algorithms can learn from data and experience, allowing them to become more accurate and efficient at tasks over time.

Another unique aspect of AI is its ability to mimic human cognition and behavior. Through techniques like machine learning and natural language processing, AI systems can perform tasks that were once considered uniquely human, such as understanding and generating speech or making complex decisions.

Finally, AI has the potential to automate many tedious and time-consuming tasks, freeing up people to focus on more creative and rewarding work. This has the potential to greatly increase productivity and efficiency in many industries, and could ultimately lead to a higher quality of life for people.
How to search files from Azure Blob Storage using Python
Tags: python, azure, webdev, cloud
Published: 2022-12-13 20:48:44


Searching for files using [index tags](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-index-how-to?tabs=azure-portal) is a common use case but the Azure documentation can be quite hard to grasp.

To search for blobs with specific tags in Azure Blob Storage using Python, you can use the `find_blobs_by_tags` method from the Azure Storage SDK. It takes as a single parameter `filter_expression` which can be used to query blobs with specific tags, container or name.

Here's an example of how to use `find_blobs_by_tags` to search for blobs with specific tags

```python
from azure.storage.blob import BlobServiceClient

# Create a BlobServiceClient object
blob_service_client = BlobServiceClient.from_connection_string("<your_connection_string>")

# Get a reference to the container where your blobs are stored
container_client = blob_service_client.get_container_client("<your_container_name>")

# Use the find_blobs_by_tags method to search for blobs with a specific set of tags
results = container_client.find_blobs_by_tags(
    "key1 = 'value1' and key2 = 'value2'"
)

# Print the names of the blobs that were found
for blob in results:
    print(blob["name"])

```

In this example, the `find_blobs_by_tags` method is used to search for blobs that have the tags `key1` with a value of `value1` and `key2` with a value of `value2`.

`find_blobs_by_tags` returns a iterable response of `FilteredBlob` objects. The return value is automatically paginated and you can control the number of `Blobs` per page with the `results_per_page` keyword argument. You can iterate the results by blob or by page using the iterator returned by the `by_page` function.

## Further reading

[Azure SDK for Python documentation](https://learn.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.containerclient?view=azure-python#azure-storage-blob-containerclient-find-blobs-by-tags)
Grid with Tailwindcss
Tags: webdev, beginners, programming, css
Published: 2022-12-13 20:37:56

{% embed https://youtu.be/-mf45Hun2iI %}

1. Introduction to tailwindcss
2. The basics of the tailwindcss grid system
3. Creating rows and columns with tailwindcss
4. Additional tailwindcss classes for controlling grid layouts

Tailwindcss is a utility-first CSS framework, which means that instead of providing pre-designed components like many other CSS frameworks do, it provides a set of low-level utility classes that can be combined to create custom designs.

One of the main features of tailwindcss is its grid system, which makes it easy to create responsive, flexible layouts for your web pages. The grid system is based on a set of utility classes that can be applied to elements in your HTML to control their size and position within the grid.

To create a grid, you first need to define a container element with the container class. This element will serve as the parent for the grid and will determine its maximum width. Within the container, you can then create rows and columns using the row and col classes. These classes will automatically divide the available space within the container into evenly-sized columns.

Once you have your rows and columns in place, you can use the w- and h- classes to control the width and height of individual elements within the grid. For example, the w-1/2 class will set an element's width to half the width of its parent container, while the h-auto class will set its height to its natural size.

In addition to these basic classes, tailwindcss also provides a variety of utility classes for controlling the alignment and spacing of elements within the grid. These classes can be combined in various ways to create complex, responsive layouts for your web pages.
Accuracy Of Classification
Tags: machinelearning, python
Published: 2022-12-13 20:21:32

Accuracy is one metric for evaluating classification models and the fraction of predictions our model got right.

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

- For binary classification, accuracy can also be calculated in terms of positives and negatives as follows:


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

Where _TP = True Positives_, _TN = True Negatives_, _FP = False Positives_, and _FN = False Negatives_.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/opz4naek4xw7p6s2psqk.png)
Aqui estão cinco idéias de projetos que podem ajudá-lo a começar com o desenvolvimento de front-end:
Published: 2022-12-13 20:09:17

## Site de portfólio
Crie um site de portfólio pessoal para mostrar seu trabalho e habilidades a potenciais empregadores ou clientes. Isso pode incluir sua experiência, educação e quaisquer projetos em que você trabalhou.

## Aplicativo de lista
Crie um aplicativo de lista de tarefas simples que permita aos usuários adicionar e gerenciar suas tarefas. Este projeto pode ajudá-lo a aprender sobre como trabalhar com a entrada do usuário e armazenar dados no navegador.

## Aplicativo climático
Crie um aplicativo climático que exiba o clima atual e preveja a localização de um usuário. Este projeto pode ajudá-lo a aprender sobre como trabalhar com APIs e exibir dados de maneira interativa.

## Jogo simples
Crie um jogo simples, como um jogo de memória ou um quebra-cabeça, usando HTML, CSS e JavaScript. Isso pode ajudá-lo a aprender sobre a criação de experiências interativas do usuário e o uso de animação.

## Site Institucional 
Crie um site para uma empresa ou organização fictícia. Isso pode incluir o design do layout, a adição de conteúdo e a implementação de recursos como um formulário de contato ou uma inscrição em boletim.
What is the difference between TypeScript and JavaScript?
Tags: javascript, programming, typescript, webdev
Published: 2022-12-13 20:06:33

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. That means that any valid JavaScript code is also valid TypeScript code. However, TypeScript adds extra features to the language, most notably types.

The type system in TypeScript is optional, but adding types can help improve the quality of your code. For example, if you add types to your variables, you can catch errors at compile time instead of runtime. This can save you a lot of time and effort debugging your code.

TypeScript compiler can help you spot potential bugs in your code. For instance, if you try to use a variable that hasn't been initialized, the compiler will throw an error. This helps you avoid potential undefined errors at runtime.

Sometimes using TypeScript feels like a step backwards as types are somewhat limiting the dynamic nature of JavaScript and definitely may require writing a bit more code. I am not sure if it's a significant drawback but sometimes it feels uncomfortable.

Overall, TypeScript is a great tool for improving the quality of your JavaScript code. If you're looking for a way to add static types to your JavaScript code, then TypeScript is definitely worth checking out.

Do you prefer TypeScript or JavaScript?
Sorting in Go(Golang) made easy
Tags: go, sort, library
Published: 2022-12-13 19:55:01

Hello there,
In today's article, I will be talking about [https://github.com/iqquee/sort](https://github.com/iqquee/sort), a Go library I built for sorting data.

### What is [sort](https://github.com/iqquee/sort) ?

[sort](https://github.com/iqquee/sort) is a Go library that sorts data(both string and int) with their number of occurrences and returns the desired data length in descending order with no duplicates of values.

#### Use cases range from:

- To implement a trending feature in an e-commerce platform
- To get the most ordered(purchased) products e.t.c

This library contains two methods in the x package: 

## SortInt()
The SortInt() sorts an array of int
```go
package main

import (
	"fmt"

	"github.com/iqquee/sort"
)

func main() {

	arr := []int{2, 3, 10, 4, 1, 10, 1, 4, 4, 5, 6, 6, 6, 6, 1, 6, 7, 8, 12, 9, 1, 1, 1}

    //pass in the array to be sorted and the desired length of data to be returned in descending order
    //the lenght should be zero(0) if you want to get all the sorted data
	sortedInt := sort.SortInt(arr, 3)
	fmt.Printf("This is the sorted int data: %v\n", sortedInt)

}
```


## SortString()
The SortString() sorts an array of string
```go
package main

import (
	"fmt"

	"github.com/iqquee/sort"
)

func main() {

	arr := []string{"by", "me", "come", "by", "me", "hello", "hey", "hey", "me", "buy", "by", "come", "hello", "go"}

     //pass in the array to be sorted and the desired length of data to be returned in descending order
	 //the lenght should be zero(0) if you want to get all the sorted data
	sortedString := sort.SortString(arr, 3)
	fmt.Printf("This is the sorted string data: %v\n", sortedString)

}
```
O que é um programador front-end ?
Published: 2022-12-13 19:31:38

Ser um programador front-end envolve criar a parte do site que é visível e interativa para o usuário. Isso inclui a estrutura da página, a apresentação do conteúdo e as funcionalidades que permitem que o usuário interaja com o site.

Para ser um programador front-end, é preciso ter conhecimento em linguagens de programação como HTML, CSS e JavaScript, além de estar sempre atualizado com as últimas tendências e tecnologias web. É importante também ter habilidades de design e ser capaz de criar interfaces intuitivas e atraentes para o usuário.

Além de criar a parte visual do site, o programador front-end também é responsável por garantir que o site funcione corretamente em diferentes navegadores e dispositivos. Isso inclui testar o site e solucionar quaisquer problemas que possam surgir.

Em resumo, ser um programador front-end é trabalhar na criação da interface do usuário de um site ou aplicativo, utilizando habilidades técnicas e de design para criar experiências agradáveis e eficientes para o usuário.