teleren/devto huggingface dataset:
*args and *kwargs, ARG! 🏴‍☠️
Tags: python, beginners
Published: 2022-08-29 17:01:27

Most people learn about `*args` and `**kwargs` while learning Python without really understanding what's going on.

Functions have arguments. Here's a basic function that prints passed arguments.

```
def printArgs(first, second):
  print(first)
  print(second)

//invoke it
printArgs(1, 2)

//this will print:
1
2
```

Well, that's cool I guess. But what if you have a case where you are not sure how many arguments will be passed? This function prints two. What if there's one?
`TypeError: printArgs() takes exactly 2 arguments`...
What if there are three? Or _fifty_? It'll only print two.

Here's where `*args` come in.

```
def printingArgs(*args):
  for arg in args:
    print(arg)

//invoke it
printingArgs(1, 2, 3, 4)

//prints
1
2
3
4
```

Note: You can name `*args` whatever you want. It's the `*` at the beginning that makes it count. You can name it `*asdf` and then use
```
for thing in asdf:
   print(thing)
```
and it will still work.

`*kwargs` are similar, but they mean `Keyword Args`; that is, arguments named with keywords like `firstName="Bob"` or something.
```
def printingArgsAndKwargs(*args, **kwargs):
  for arg in args:
    print(arg)
  for key, value in kwargs.items():
    print(key,value)

//invoke it
printingArgsAndKwargs(1, 2, 3, a=1, b=2, c=3)

//prints args first
1
2
3
//prints kwargs
('a', 1)
('b', 2)
('c', 3)
```

And there you are, as simple as possible.
Gazmin Streetfood: 3D Virtual Marketplace using Redis & Marzipano
Tags: redishackathon, node
Published: 2022-08-29 16:58:00

### Overview of My Submission

Visit Our Live Demo: [Gazmin Streetfood](https://gazmin.facsiaginsa.com)

Gazmin Streetfood is a 3 Dimensional Virtual Marketplace for Indonesian Streetfood. It's users will feel the experience of visiting the place while shopping virtually. Right now, this app **is not working well with SAFARI browser**, please use other browser instead such as **GOOGLE CHROME** or other Chromium-based web browser.

![Gazmin Home Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eo3r0qmyqabw1lwb7whw.png)

We also provide live search bar. If you click on the search result, then you will be brought to the stall directly.

![Gazmin Search Streetfood](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yp8b2y5w1mvf9rhj13lt.png)

You can click the stall icon, and see all products they offer.

This is the Application Architecture :

![Gazmin Streetfood Architecture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dn6ptqa561xd375pz5dg.png)

This app is consist of 3 apps, 2 Redis, 1 Minio. The marketplace microservice is handling request related to the marketplace transactions itself (user management, product, cart, checkout), while the streetview microservice is handling request related to streetview data. Each of the microservices store their data on seperate Redis Stack.

Meanwhile, Minio is used to store the product and streetview images.

### Submission Category: 

MEAN/MERN Mavericks. The redis is used for search capabilities as well as main database for the App.

### Video Explainer of My Project

This is a video explaining our Project:

{% embed https://youtu.be/fkjYYaPKh6M %}

### Language Used

The language we are using in backend is **Nodejs**.

### Link to Code

This is the link to our repositories:
{% embed https://github.com/facsiaginsa/gazmin-streetfood %}

### Additional Resources / Info

Additional Resource We used to make this project:
- Frontend Framework: jQuery (https://jquery.com)
- Backend Web Framework: fastify (https://www.fastify.io)
- Redis Library: @fastify/redis (https://github.com/fastify/fastify-redis)
- Streetview Library: Marzipano (https://www.marzipano.net)
- Storage: Minio (https://min.io)

### Collaborators

{% embed https://dev.to/facsiaginsa %}

{% embed https://dev.to/moefc32 %}

- - - 

* _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)._
How To Hide A WordPress Page From Google
Tags: beginners, webdev, tutorial, productivity
Published: 2022-08-29 16:45:01

How to Hide a WordPress Page From Google. Sometimes you may require to exclude a post/page from looking in Google search results as it is not related to your website’s content, to defend your privacy from unwanted users.

In this article, you will learn how to hide a WordPress post/page from Google without harming your site’s overall (SEO) Search Engine Optimization.

## Why Need to Hide a WordPress Page from Google?

As we know Search engines like Google support website owners to exclude content (Posts) from search results. You can hide WordPress blog posts and pages that don’t have any importance to the wide public such as posts you might have to design for website ownership confirmation.

The different situation where excluding WordPress pages from search results is useful if you have a membership website. You can protect/hide the profile pages of your users from appearing on search engines.

Protecting content from Google is also effective if your website is under development, and you want to share a sneak show with your audience. This way Google won’t index an uncovered website in its search results.

Besides that, excluding pages that have special or raw information supports protecting your privacy and stops private information from falling into evil hands.

Easiest Way to Hide a WordPress Posts from Search Engines
This process is the easiest and suggested for trainees.

You can hide a WordPress post from Google by using a WordPress plugin like Rank Math. It’s one of the most popular SEO plugins used by 1+ million websites. First, you need to do is install and activate the Rank Math plugin.

Read More: [How To Hide A WordPress Page From Google](https://softcodeon.com/wordpress/hide-a-wordpress-page-from-google.htm)
Setup Cloudflare DNS on your router
Tags: dns, tutorial
Published: 2022-08-29 16:41:00

Goto this link https://developers.cloudflare.com/1.1.1.1/setup/

Expand `Block Malware` and copy first two IP Address
![Cloudflare DNS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5m3bo42oh9julayxbwdk.png)

Goto router's admin panel and put this two IP on DNS1 and DNS2 and Save
![DNS Configuration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ejaxsdeij09jc34jgd70.png)

To test if it's successfully set or not visit https://my.nextdns.io/start
![Test DNS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gpulhhexh3t8igg9jwjm.png)

If successfully set you'll see `This device is currently using ”Cloudflare” as DNS resolver.`

Or use this link https://1.1.1.1/help
Loading Animation in CSS
Tags: webdev, codepen, beginners, tutorial
Published: 2022-08-29 16:22:00

Hello Guys i am back with some more basic animations and i am going to show some loading animations today.Maybe you had already seen these animations somewhere and if not then try it out😜.

## Triangular Rotation -

{% codepen https://codepen.io/shubhamtiwari909/pen/YzamPyM %}

## Color Changer -

{% codepen https://codepen.io/shubhamtiwari909/pen/qBoeBgY %}

## Bouncing -

{% codepen https://codepen.io/shubhamtiwari909/pen/WNzVNYv %}

## Border Rotation-

{% codepen https://codepen.io/shubhamtiwari909/pen/bGvXGVZ %}

## Shape Changer -

{% codepen https://codepen.io/shubhamtiwari909/pen/gOeVYNK %}

## Sliding  -

{% codepen https://codepen.io/shubhamtiwari909/pen/jOzgNXJ %}

## Bubbly -

{% codepen https://codepen.io/shubhamtiwari909/pen/abYeojd %}

## Zooooooom -

{% codepen https://codepen.io/shubhamtiwari909/pen/mdxNbLB %}

THANK YOU FOR CHECKING THIS POST ❤❤

You can contact me on -
Instagram - https://www.instagram.com/supremacism__shubh/
LinkedIn - https://www.linkedin.com/in/shubham-tiwari-b7544b193/
Email - shubhmtiwri00@gmail.com

^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well
https://dev.to/shubhamtiwari909/js-push-and-pop-with-arrays-33a2/edit

https://dev.to/shubhamtiwari909/tostring-in-js-27b

https://dev.to/shubhamtiwari909/join-in-javascript-4050

https://dev.to/shubhamtiwari909/going-deep-in-array-sort-js-2n90
Wanna make learning to code fun? Check out 7 best tips to transform your learning experience.
Tags: beginners, codenewbie, motivation, programming
Published: 2022-08-29 16:10:12

Just getting started learning to code can be overwhelming. There is so much to learn and the learning don’t stop. Programmers are _lifelong learners_.
###Here are some great tips to excel at learning to code and turn the lifelong journey into a fun one

1. Be patient. If you don’t learn quick take your time. It’s not a sprint it’s a marathon.

2. Find a way to stay consistent. For example every day at 12pm you spend 1 hour learning programming. Make it a habit.

3. Don’t focus too much on tools.

4. Try to ignore too much enthusiasm (hype) and too much negativity as well (e.g. “PHP is shit” - not true).

5. You learn by doing, not by watching other people do. There’s only so much you can get from just watching so don’t be scared to take things on.

6. Everyone makes mistakes. Mistakes are part of the learning process. Don’t be so stuck on getting it right all the time.

7. Lastly try to have fun doing it.
Terraform code to Create Github Repository
Tags: github, terraform, javascript
Published: 2022-08-29 16:02:00

**Create a new manifest called github.tf in the directory, and paste that into there:**

**Copy the use provider code to create your first block**

terraform {
  required_providers {
    github = {
      source = "integrations/github"
      version = "4.30.0"
    }
  }
}

provider "github" {
  # Configuration options
}

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

**Under authenticate in** https://registry.terraform.io/providers/integrations/github/latest/docs, 
**you see that a token is required. Generate a token in your github accoundt under the developer settings within settings . When creating the token, select the operations for repo and 
delete_repo.**

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

**- Navigate to github_repository in the documentation and copy the example usage into your VS Code, You can remove the template and description part since they are optional, change the 
visibility to public/private and name it as terraform repo**

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

**Run Following Commands**
$ **terraform init**
	**- Download Providers & Modules**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xbv5zkzntw3rhmbg2k3z.png)
$ **terraform validate**
	**- Validate .tf profile**
$ **terraform plan**
	**- DRY RUN**

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

$ **terraform apply**
	**- Create a resources &&& store a resonse IN STATE file(json)**

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

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

**Now go to your github and you can see your repo** 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ixd2utrr0446tb9huwaq.png)
Beautiful 3d button - A step-by-step guide
Tags: css, html, design, webdev
Published: 2022-08-29 15:50:00

## <u>HTML</u>

For HTML we have only one button element with "CLICK" text. 

```html
<button>CLICK</button>
```

## <u>CSS</u>

For CSS, we'll set some basic styling to a button.

First we'll remove button's default border, by setting border property to none.

Then we'll set the background color to light purple (#976D70) and text color to white (#fff).

Now we'll add some padding so it looks nice.
And of course the transition. So the hover effect, which we'll add later, is nice and smooth.

We'll set the border radius to 6px.

And then we'll add two shadows.

The first one (#665367 0 7px 2px) represents the bottom side of the button, which creates a 3d effect, and the second one (#000 0 8px 6px) is the actual shadow.

```css
button { 
  border: none; 
  background-color: #976D70; 
  color: #fff; 
  padding: 10px 20px; 
  transition: .2s; 
  border-radius: 6px; 
  box-shadow: #665367 0 7px 2px, 
              #000 0 8px 6px; 
  cursor: pointer; 
}
```

When active (on click), we'll transform the button by 8px and decrease the shadows.
That will create button press effect.

```css
button:active { 
  transform: translateY(8px); 
  box-shadow: #665367 0 0 0, #000 0 0 3px; 
}
```

[You can get full code here with video tutorial](https://designyff.com/code/click_3d_button)

**Thank you for reading ❤️**
What are your goals for the week? 8/29
Tags: watercooler, goals, accountability
Published: 2022-08-29 15:45:00

It's Monday. 

- What are your plans for the week?   
- What are you building? 
- What will be a good end result by week's end?

This week I have some content update for a couple sites I maintain. I've already started on that. Spent part of the morning try to figure out why a site's Https Certificate was down.  

**Other goals**

- set up a repo to help demo a side project.
- Continue on the job search
- Work some code challenges
- Blog and maybe do more CSS art
Luos 2.6 keynote live on Discord on September 15 at 9:00 am PT.
Tags: opensource, microservices, event, luos
Published: 2022-08-29 15:44:46

🔴 Luos 2.6 keynote live on Discord on September 15 at 9:00 am PT.
To participate ⏩ https://discord.gg/mNX5MdSk?event=1013835403465326683

Save the date for this special event where Nicolas Rabault will present the new version 2.6!
Rust desde cero (parte 1)
Tags: programming, rust, learn
Published: 2022-08-29 15:31:00

## Este documento contiene los principios mas básicos del lenguaje de programación Rust. 

### Tabla de contenido 
- [Imprimir en consola](#imprimir-consola)
- [Comentarios](#comentarios)

##Imprimir en consola
<div id='imprimir-consola'/>
#### Single placeholder
- el single placeholder es utilizado cuando se quiere imprimir un valor único.

![Single Placeholder](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qarf5uajw5srp5asytmc.png)
```
fn main() {
    println!("Number: {}", 1);
}
```
#### Multiple placeholders
- podemos usar múltiples placeholders dentro de la macro **println!()**.
- el número de placeholders debe ser igual el número de valores a imprimir.
```
fn main() {
    println!("{} con {} company", "Aprendiendo", "Cuadros");
}
```

#### Argumentos posicionales 
- los argumentos posicionales especifica la posición de los valores en la macro.
- la lista de valores puede tener cualquier orden.
- un valor puede ser utilizado cualquier numero de veces.
```
fn main() {
    println!("Enhance your coding skills from {0} courses.  {0} courses are very {1}", "Educative", "interactive");
}
```
<div id='comentarios'/>
##Comentarios
- Rust tiene dos maneras de hacer comentarios

#### Comentarios en línea
- para comentar una línea de código debe comenzar por doble slash **//**
```
// Writing a Rust program
fn main() {
    //The line comment is the recommended comment style
    println!("This is a line comment!"); // print hello World to the screen
}
```

#### Comentario de bloque
- el texto debe estar encerrado dentro de `/*...*/`
```
fn main() {
    /* 
    The block comment is extremely useful for temporarily disabling
    a large chunk of code. /* Block comments can also be /* nested, */ */
    To comment a large block just write in between /* text */
    */
    println!("This is a line comment!"); // print hello World to the screen
}
```
What is Java?
Tags: java, oop
Published: 2022-08-29 15:30:04

JAVA! first of all what is JAVA? Basically, Java is an object-oriented programming language that produces software for several platforms. There is no full form of JAVA as such but somewhere it is called Just Another Virtual Accelerator. JAVA was originally developed at Sun Micro-System which has since been acquired by Oracle by James A. Gosling, who was a computer scientist and released as a core component of Sun Microsystem's JAVA platform in 1995. He designed Java by using C/C++. Java is an object-oriented language, which means all programs are made of entities representing the concept of physical things known as “objects”. Its syntax is similar to C and C++, but as compared to both, it has fewer low-level facilities. According to GitHub, Java was one of the most popular programming languages in use as of 2019, particularly web applications for client-server, with more than 9 million developers.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p5c5x0raa72as830urbr.png)
Java produces browser-run programs called applets, which facilitate graphical user interface and object interaction by internet users. Java applets run in a web browser called Java Virtual Machine(JVM), which translates Java byte code into processor instructions and allows the program for execution. Java program development requires a Java software development kit which includes a compiler, interpreter, and other tools used to produce a complete application. Java only needs a Java Runtime Environment in order to work regardless of whether it is installed in Windows, Linux, or Unix. Generally, Java is used in Android Applications, Desktop GUI Applications, Web-Based Applications, Financial and Retail Services, and many more. Nowadays Java plays a major role in many student's life as many companies prefer java and Kotlin developers for their work. Many games like Minecraft, RuneScape, Spiral Knight, and SimCity are made by using Java.
EPubbing
Tags: epub
Published: 2022-08-29 15:24:00

I've been an avid reader for as long as I can remember. When I bought my first house, I made sure there would be a dedicated library with lots of bookshelves.

Since then, I've become addicted to ebooks and can't abide paper books. 

I feel terrible confessing this. Paper books have been a part of my life for so long and I thought the idea of reading a book on a smartphone was ridiculous. But my eyesight is deteriorating and ebooks make it so easy to set a comfortable font. Another advantage, since my phone only displays a paragraph at a time, it's forced me to slow down and savor the words. I can also look up any words I'm unfamiliar with instantly.

But, I've got a lot of books in my library that aren't available as ebooks. Time to learn to create them.

So, the [EPUB](https://en.wikipedia.org/wiki/EPUB) format is an open format that is supported by almost all ereaders. It was started by the Open eBook Forum, but it's now maintained by the [W3C](https://www.w3.org/TR/epub-overview-33/).

EPUB is over 10 years old, and there have been some changes over time, so there's a lot of outdated docs out there. But of course, nobody ever points out that their docs are outdated. It's left as an exercise for the reader.

Most of the docs that I've read insist that you should use existing software to convert text to EPUB, but I found that Apple's Page app injects useless Javascript. So I decided to use my own technique.

I created a [simple guide to EPUB's structure](https://sean.brunnock.com/HTML/EPUB/). It doesn't go into excessive detail. It just shows how to create a very simple ebook that complies with EPUB v3.2. 

To create an ebook, I use the "Scan Text" feature on my iPhone's Notes app to convert the page to ASCII text. The Notes app syncs with my Apple account, so the text shows up on my desktop as well.

Next, I use [my own software](https://sean.brunnock.com/React/ScannedTextCleaner/) to convert the raw text into XHTML. I copy the text to my app and compare it to the original book and insert a mark (three backticks) at the start of each paragraph. My app can delete all of the existing newlines and then replace the backticks with newlines. I can then triple-click entire paragraphs and mark them up.

Notes is great at scanning words, but not so great with punctuation. All em dashes get turned into hyphens, for example. My app can highlight all of the puncuation so you can hopefully eyeball any mistakes.

My app removes hyphens from the ends of lines and combines word parts into single words. Sometimes, the hyphen at the end of a line was meant to be part of a hyphenated word. Chrome's textarea has a spellcheck feature that can highlight those mistakes.

My app doesn't create an entire XHTML file. It just marks up the raw text and I copy that into a template. 

So far, I'e managed to turn [Weaving the Web](https://www.w3.org/People/Berners-Lee/Weaving/Overview.html) into an ebook which I'm now finally reading comfortably. Very strange that a book by the guy who invented the Web isn't available in electronic format.
Discussion: Is .NET releasing versions too fast in recent years?
Tags: dotnet, discuss
Published: 2022-08-29 15:16:14

---
title: Discussion: Is .NET releasing versions too fast in recent years?
published: true
description: Let's discuss about how .NET is releasing new versions, advantages and disadvantages of this schema.
tags: dotnet, discussion
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

.NET has been evolving rapidly in the last few years delivering new features quite fast, new improvements in C# and open source libraries to enhance our projects. However, it is also difficult to keep track of all these changes and keep our projects up to date. Even for cloud service providers or .NET apis it has been difficult to maintain compatibility with the latest version.

This is how .NET and were moving before

| .NET Version  |  C# Version | Year  |
|---|---|---|
| .NET 4.0  | C# 4  | 2010  |
| .NET 4.5  | C# 5  | 2012  |
| .NET 4.6 |  C# 6 | 2015  |


And now in the recent years we have a new version per year:

| .NET Version  |  C# Version | Year  |
|---|---|---|
| .NET Core 3.0  | C# 8  | 2019  |
| .NET Core 5.0  | C# 9  | 2020  |
| .NET Core 6.0 |  C# 10 | 2021  |
| .NET Core 7.0 |  C# 11 | 2022  |


It is important to note that there are both long term support (LTS) and non-LTS versions, but this can be confusing for companies that are focused on the day-to-day and are not aware of what is happening with .NET. 

The main advantage I see is to have constant improvements that allow faster and simpler programming. But on the other hand keeping a project up to date can be difficult.

Let's discuss about the topic in a friendly and pleasant way and share our thoughts.