teleren/devto huggingface dataset:
PRELUDE
Tags: beginners, spanish, devjournal
Published: 2022-04-24 03:17:34

Érase una vez, un estudiante de pregrado con muchas ganas de aprender, con ideas sobre su futuro y proyectos con su nueva carrera; con más dudas que respuestas a medida de que pasaban los semestres, los diferentes temas y materias iban generando esa curiosidad sobre un mundo “allá afuera” el cual parecía que no estaba cerca. Materias aunque necesarias para un título, representaban más un reto que una pasión por perseguir. Profesores que si bien eran expertos en el tema, no lo eran en  su pedagogía o forma de enseñar para mostrarnos cómo sería todo “allá afuera”, generando incluso un rechazo a temas importantes que luego de una u otra forma habría que retomar. La incertidumbre por el mundo laboral y el temor por no estar suficientemente capacitado hicieron que el inicio a una etapa de retos, pero más aún, de mucho aprendizaje, se fuera postergando. 

Finalmente, temprano para unos y algo tarde para otros, la aventura en este mundo donde todo es nuevo y abrumador comenzaba; un computador, una pantalla, un mouse y un teclado con el cual podría expresar mis dudas y temores diarios en blogs y diferentes sitios web, donde alguien, al que ni su nombre podré recordar, salvó cada día de forma precisa lo que necesitaba y a lo que me enfrentaba. Una comunidad que hizo que enfrentar este reto fuera posible y cada vez más apasionante. 

En un mundo donde todo está creado ya, el síndrome del impostor y esa voz en la cabeza hicieron que el momento de sentarme a redactar estas líneas pareciera nunca llegar. Una nueva etapa con muchos retos, el sueño de un niño de tener el poder de llegar a otros con unas pocas letras y muchas ideas finalmente va teniendo forma. 

> Explain it to yourself as if you were talking to a friend, helping them understand it. _Ankita Tripathi_

No me considero un experto en ningún tema, incluso, esa es otra voz en mi cabeza, pero se que tengo una deuda con esta comunidad que por tantos años me ha ayudado y que día a día lo sigue haciendo. Este medio será una forma, tal vez ínfima, de agradecer, pero sobre todo de continuar aprendiendo y hacerlo de una forma que me apasiona, charlando. 
__
Tipe Data MySQL - Bahasa Indonesia
Tags: cheatsheets, mysql, database, datascience
Published: 2022-04-24 02:59:24

## Tipe Data:
1. [Tipe Data Number](#tipe-data-number)
2. [Tipe Data Number](#tipe-data-number)
3. [Tipe Data Number](#tipe-data-number)

## 1. Tipe Data Number <a name="tipe-data-number"></a>
   Dibagi menjadi 2 Tipe data **Integer**, **Floating Point**, dan **Decimal**

### Tabel Tipe Data Integer
| Type | Length in Bytes | Minimum Value (Signed) |Maximum Value(Signed)|Minimum Value(Unsigned)|Maximum Value(Unsigned)
|---|---|---|---|---|---
| TINYINT | 1 | -128 | 127 | 0 | 255
| SMALLINT | 2 | -32768 |32767| 0 | 65535
| MEDIUMINT | 3 | -8388608 | 8388607 | 0 | 16777215
| INT | 4 | -2147483648 | 2147483647 | 0 | 4294967295 
| BIGINT | 8 | -9223372036854775808 | 9223372036854775807 | 0 | 18446744073709551615

### Tabel Tipe Data Floating Point
| Type | Length in Bytes | Minimum Value (Signed) |Maximum Value(Signed)|Minimum Value(Unsigned)|Maximum Value(Unsigned)
|---|---|---|---|---|---
| FLOAT | 4 | -3.402823466e+38 | -1.175494351e-38 | 1.175494351e-38 | 3.402823466e+38
| DOUBLE | 8 | -1.7976931348623157E+308 |-2.2250738585072014E-308| 0 & 2.2250738585072014E-308 | 1.7976931348623157E+308 

> **Signed**: value dapat bernilai negatif.
> **Unsigned**: value hanya bernilai positif.
>**Length in Bytes**: ukuran memory yang dipakai  untuk menyimpan tipe data tersebut di hardisk. Contoh: ketika menyimpan tipe TINYINT di hardisk, maka hardisk kalian akan berkurang 1 Bytes.

### Tabel Tipe Data Decimal
|DECIMAL|MIN|MAX
|---|---|---
|DECIMAL(3,2)|-9.99|9.99
|DECIMAL(7,5)|-99.99999|99.99999
|DECIMAL(3,0)|-999|999
|DECIMAL(3)|-999|999
Super Mechs Mod Apk Latest Version With Unlimited Tokens Free Download
Published: 2022-04-24 02:57:00

Yes, these bots can be customized endlessly. You can mix and match the parts of the bots to your heart’s content until you develop the ultimate killing machine!

You can start out with basic parts, but as you fight and level up, you can unlock new parts and weapons. [Super Mechs Mod Apk](https://apkhobby.com/super-mechs-mod-apk/) You can also try your luck at getting new parts by opening loot boxes.

Furthermore, you can take your existing parts and upgrade them using coins.

## 
High Quality 2-D Graphics
With so many games in the gaming industry, mobile, pc, etc being 3-D, it is nice to see a nicely made game with high-quality 2-D graphics.

The assets have rich detail and the backgrounds have just as much effort put into them as well, which is impressive considering that the game is only 37 MB.

Amazing Battle Music
What is a game without some good quality music? Luckily Super Mech Mod Apk has got you covered.

Although the game does not play any music when you are in the menus, it does play during battle.

The music is very reminiscent of the 80s synth, appropriate considering this was the same time mechs started getting popular in mainstream media.
Publish a website using by Ngrok
Tags: ngrok, nginx
Published: 2022-04-24 02:12:06

Written with [Cameron Gibson](https://github.com/cgcamcam) 

### Versions
Homebrew 3.4.7
Nginx 1.21.6
Ngrok 3.0.2

### About Ngrok
- A tool that makes the specific port of local machine public on internet
- Pricing: Free for personal use
- Official website: https://ngrok.com/

### Make your local port public to the internet 

- Create your ngrok account at [signup page](https://dashboard.ngrok.com/signup).
- Confirm your email verification
- Install Ngrok following [download page](https://ngrok.com/download)
   ```shell
   brew install ngrok/ngrok/ngrok
   ```

- Get authentication token and command to run at ]Ngrok console "Getting Started > setup & installation"](https://dashboard.ngrok.com/get-started/setup)
   ```shell
   ngrok config add-authtoken <your authentication token>
   ```
- Run Nginx
   ```shell
   nginx
   ```
      
   Acess to http://localhost:8080/

![1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/28y0e587idyjx02eh44d.png) 

- Run Ngrok
   ```shell
   ngrok http 8080
   ```

![2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s6hnk3o4dt6mqois6om2.png)
- Check "Forwarding URL" given
- Acess to "Forwarding URL"

![3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vhsmwyv7x8weivp2zxjj.png)
Some Notes on Asahi Linux - 01
Tags: linux
Published: 2022-04-24 00:05:39

# Some Notes on Asahi Linux - 01

2022-04-24

TLDR: Install the Desktop version of Asahi Linux instead of the minimal.

Just some notes on installing Asahi Linux on my M1 mac. I loved arch linux in the past but I don't have the desire to go super deep into learning everything again so I'm hoping I can just wing it.

The first thing is that I needed to update my mac OS which was straightforward. It took some time but it went without issue.

The next step was to run the asahi linux script which once again was easy. The prompts are easy to understand and quite descriptive. Definitely one of the better linux installs I've done.

Also really cool that it installs from the MacOS which I've never seen before. I'm curious if that's a hard requirement or if its possible to boot up into asahi and install from a live disk.

The snag I hit was my own doing, the prompt asked me if I wanted the minimal install or the desktop install. I wanted to keep things light and install things as I needed them so I chose the minimal install.

This ended up being a bad move because all sorts of wifi stuff weren't installed such as wpa_supplicant or wifi-menu needing the dialog package. This meant I couldn't get internet access to download packages like i3 or a browser.

Whoops!

I'm going to pick up a usb c ethernet adapter as the macbook doesn't have an ethernet port but I'm hoping once I get the adapter, I'll be able to get online and start installing all the packages I need.

It isn't linux without me making problems for myself!
Create your own Platform-As-A-Service(PaaS) Based on Kubernetes
Tags: kubernetes, sre, devops
Published: 2022-04-23 23:28:59

Hi, I'm Morteza, and here is a little about me.
In 2018 my colleagues and I started a side project start-up called [fandogh](fandogh.cloud). It was the first public PaaS based on Kubernetes in Iran. I had to work on the identical product again but this time based on OpenShift, Which is slightly different than Kubernetes. I worked for three more years on a PaaS product and gained lots of experience in what a Platform-as-a-Service needs. In this blog post series, I will share the challenges a PaaS might face when dealing with public users, what are the corner cases and the lots of fun I had on this journey. 

At first, we have to classify PaaS delivery methods.
In my opinion, there are two types of PaaS:

1. Running already built container image.
2. Building source code and creating container image, then running it.

Examples for the first one are Azure Container Service or DigitalOcean Apps.
For the second method, the very famous one, is Heroku. DigialOcean Apps also builds and runs from the source code.

In Container Services(PaaS), we support both methods, and You can run your container directly or build your source code and run it in our container service cloud.

Well, that's enough for the introduction. Let's start by comparing OpenShift and Kubernetes.

OpenShift added some extra features to Kubernetes, But from the inside, it is Kubernetes. Let me explain by examples.

Imagine you have a PaaS, and your first customer signs up for the service. First, you need to set a default quota for the newly registered user. OpenShift does this by templating it is supporting. You can set a default template for a newly registered user. It can consist of many resources, like default quota for a namespace or default NetworkPolicy for any registered namespace.

The registered user must have limited access to the cluster only to his namespace and no way to privilege his access. OpenShift automatically assigns the user to a "restricted" group when a user signs up. You can edit what is "restricted" group is capable of in SCCs(SecurityContextConstraints).

So, for now, OpenShift handled two main problems a PaaS could face. But we will implement the same features with the help of open-source projects, secure our platform, and build it on raw Kubernetes.

End of Part 1
Next.js: Custom server and Automatic Static Optimization
Tags: help, nextjs, javascript, discuss
Published: 2022-04-23 21:58:32

Hello everyone!

I am having trouble understanding why [in the docs](https://nextjs.org/docs/advanced-features/custom-server) it is stated that having a custom server disables [_Automatic Static Optimization_](https://nextjs.org/docs/advanced-features/automatic-static-optimization).

> Before deciding to use a custom server, please keep in mind that it should only be used when the integrated router of Next.js can't meet your app requirements. **A custom server will remove important performance optimizations, like serverless functions and Automatic Static Optimization**.

 My understanding is that thanks to it, during the build phase (`next build`) it will automatically generate an HTML file (for pages that qualify) which will be then served in future requests.

Now, what is preventing nextjs handler in the custom server from using already generated files from the `next build` step and serving them just as the built-in server would?

I tested serving app with the built-in server (`next start`) and with a custom server and I have not found any difference between them, even when it comes to the _Automatic Static Optimization_. In both cases, static HTML files were generated for a simple page with no `getServerSideProps` or `getInitialProps` and it served the page without a problem.

Have I misunderstood what the _Automatic Static Optimization_ is really doing? Or something else?

Thanks!
asp.net .net 6 just a view so far
Published: 2022-04-23 21:14:15

---
title: asp.net .net 6 just a view so far
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---

It's been a tough couple of weeks recently, I've been reflecting and reading a lot about asp.net.
Using some of online guides, video tutorial I've finally got my head around it...somewhat. It is more difficult than laravel for sure... but looking at how much this [clean architecture](https://github.com/jasontaylordev/CleanArchitecture) template has helped a lot at finding some cool stuff.
Before I got to this I've had to dig myself into books to cover the following:

* Dependeny injection
* Mediator
* reviewing Builder Pattern

Of course there were a few design patterns I've gone through, it seems that it has been helpful.

Some design patterns I've picked up and used in learning asp.net core

* Singleton pattern
* Guard Pattern
* Observer Pattern

it is not easy to go get your head around it.
There is a lot of work, reading, testing and deleting files.

So far I think I need to build a small tutorial to get started with Clean Architecture from Jason Taylor to get people to understand as the current github repo doesn't have a wiki or good documentation to get newbies in ASp.net to get started.
Python programming for beginners
Published: 2022-04-23 20:30:02

## What is python? 
Python is a high-level, object-oriented programming language. Most beginners in the development field prefer Python as one of the first languages to learn because of its simplicity and versatility.
## Executing the Python program.
take for example we have created a file named main.py and we want to run it we will do the following

```
Python3 main.py
```



## Creating Functions in Python  
for example : if we want to create a function to add two variables

```python

  def add_10(x):
     return (10+x)
```
## Data Types

- numbers
- strings
- boolean
- tuples
- lists
- dictionaries

## control statements 
1. **for loop**

A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).

eg. 
Print each fruit in a fruit list:

``` python
fruits = ["apple", "banana", "cherry"]
for x in fruits:
  print(x)

```
2. **if statement**

If statement:

```python
a = 33
b = 200
if b > a:
  print("b is greater than a")

```
## Applications of Python.
Artificial Intelligence
Desktop Application
Automation
Web Development
Data Wrangling, Exploration And Visualization.
Membuat Program Operasi Himpunan (Gabungan)
Tags: javascript, programming, beginners, set
Published: 2022-04-23 20:26:42

Hai teman-teman 👋

Kali ini saya akan membuat fungsi untuk mendapatkan gabungan antara 2 himpunan dengan menggunakan bahasa pemrograman javascript. Fungsi ini menerima 2 inputan variabel yang merupakan objek dari kelas Set dan akan menghasilkan gabungan dari 2 objek tersebut. Berikut kode pemrogramannya:

```javascript
function getUnion(a, b) {
    const arrayA = Array.from(a);
    const arrayB = Array.from(b);
    const union = arrayA.concat(arrayB);

    return new Set(union);
}
```

Pada fungsi di atas saya melakukan konversi pada variabel a dan b terlebih dahulu dari Set menjadi array. Lalu, saya menggabungkan kedua array hasil konversi tersebut dan disimpan dalam variabel union. Langkah terakhir, saya mengembalikan variabel union yang telah dikonversi menjadi Set supaya tidak ada duplikasi data.

Contoh penggunaan:

```javascript
let a = new Set([1,2,5,6,7,9]);
let b = new Set([2,3,4,5,7,8]);

console.log(getUnion(a, b));
```

Output dari kode di atas adalah

```
Set(9) { 1, 2, 5, 6, 7, 9, 3, 4, 8 }
```

Demikian yang bisa saya bagikan, apabila ada yang perlu dikoreksi silahkan share di kolom komentar. 😁
Cost Optimization Pillar - Best Practice Areas
Tags: aws, cloud, architecture
Published: 2022-04-23 20:05:19

## Practice Cloud Financial Management

### Why is the Practice Cloud Financial Management best practice area important?

Cloud Financial Management enables long-term success by building capability across your organization. It implements organizational-wide knowledge building programs, resources, and processes.

---

## Expenditure and Usage Awareness

### Why is the Expenditure and Usage Awareness best practice area important?

Many businesses are composed of multiple systems run by various teams. Drive efficiency by attributing resource costs to the individual organization or product owners. Accurate attribution helps you to know which products are truly profitable for more informed decisions about where to allocate budget.

---

## Cost-Effective Resources

### Why is the Cost-Effective Resources best practice area important?

Using the appropiate resources and configurations for your workload is key to cost savings. For example, a reporting process might take 5 hours to run on a smaller server but 1 hour to run on a larger server that is twice as expensive. Both servers give you the same outcome, but the smaller server incurs more cost over time.

---

## Manage Demand and Supply Resources

### Why is the Manage Demand and Supply Resources best practice area important?

When you move to the cloud, you pay only for what you need. You can supply resources to match the workload demand at the time they are needed -eliminating the need for costly and wasteful over-provisioning.- You can also modify the demand using a throttle, buffer, or queue to smooth the demand and serve it with fewer resources.

---

## Optimize over Time

### Why is the Optimize over Time best practice area important?

As AWS releases new services and features, it is a best practice to reassess your existing architectural decisions to ensure they continue to be the most cost-effective. As your requirements change, be aggressive in decommissioning resources and entire services or systems that you no longer require -this avoids orphaned resources.
AWS Well-Architected Framework - Cost Optimization Pillar
Tags: aws, cloud, architecture
Published: 2022-04-23 19:30:20

## What Is the Cost Optimization Pillar?

The Cost Optimization pillar includes the ability to run systems to deliver business at the lowest price point.

## Why is Cost Optimization important to improving my architecture?

Building and operating cost-efficient workloads helps achieve business outcomes at the lowest price point. It minimizes wasteful architecture re-work, and allows greater investment in new business opportunities or technology.

---

## What are the design principles of Cost Optimization?

There are five design principles for Cost Optimization in the cloud.

### Implement Cloud Financial Management

To achieve financial success and accelerate business value realization in the cloud, you need to invest in Cloud Financial Management. Your organization needs to dedicate time and resources to build capability in this new domain of technology and usage management. Similar to your Security or Operational Excellence capability, you need to build capability through knowledge building, programs, resources, and processes to become a cost-efficient organization.

### Adopt a consumption model

Pay only for the computing resources that you consume. Increase or decrease usage depending on business requirements, rather than using elaborate forecasting.

### Measure overall efficiency

Measure the business output of the workload and the costs associated with delivering it. Use this measure to know from increasing output or functionality and reducing costs.

### Stop spending money on undifferentiated heavy lifting

Focus on your customers and business projects by allowing AWS to perform data-center operations like racking, powering servers, and removing the operational burden of managing systems and applications with managed services.

### Analize and attribute expenditure

The cloud makes it easier to accurately identify the usage and cost of systems, so you can transparently attribute IT costs to individual workload owners. This gives workload owners an opportunity to optimize their resources and reduce costs.

---

## What are the best practice areas of Cost Optimization?

- Practice Cloud Financial Management
- Expenditure and Usage Awareness
- Cost-effective Resources
- Manage Demand and Supply Resources
- Optimize over time
Total POS - API Rest
Tags: flutter, opensource, spanish, totalpos
Published: 2022-04-23 19:13:02

> En un capitulo más de esta serie llamada:
> "Ingeniero aburrido un fin de semana"

## Monolitos 🪨
Llámame generación de cristal si quieres, pero me da dolor de cabeza ver un monolito tan grande para algo tan sencillo. Terminando la integración de PostgreSQL, me di cuenta de algunos cabos sueltos al momento de levantar el sistema y demás.
Así que se me ocurre que lo puedo solucionar con una API REST local en Go (Por que aquí estamos para programar en muchos lenguajes que no dominamos, claro que sí).
De esta manera todos los puntos de venta son directamente clientes y la escalabilidad a llevar esto a la nube será tan rápida como cambiar la URL del API Rest, delegar la responsabilidad de la base de datos, su integridad y la tolerancia a fallos. Así que Flutter quedaría solo como Frontend y la idea de agregar GRPC puede posponerse hasta toparnos con algún problema que opine lo contrario.

## PostgreSQL 🐘
Tenemos ahora la [integración con postgreSQL](https://github.com/ushieru/total_pos/tree/postgres) totalmente funcional, por si algún valiente quiere probarla, contribuir o simplemente criticarla o criticar como programo.

## Entonces que sigue? 🤔
Me peleare un ratito con Go para tener un api rest que funcione como orquestador para todos los clientes punto de venta, esto no solo facilitara la integración local para una sola sucursal sino que también va pensado para ser integrado en matrices de sucursales y tener todo el control desde ahí.

## Muchos cambios 🤕
No soy un experto, ni conozco al 100 la industria, tampoco planeo hacerme rico con esto (Free forever) estoy aqui para aprender y documentar por si alguien se quiere sumar.

Gracias por leerme, puedes dar retro de cualquier tipo, aquí no nos ofenden las criticas destructivas.

Y Happy Hacking 🧑‍💻🎉
Add a CLI interpreter for PHPStorm in MontereyOS
Tags: php, laravel, symfony, phpstorm
Published: 2022-04-23 19:11:34

If you are working with Valet maybe you have multiple projects, running multiple php versions.

If you are using PHPStorm too maybe you want to take advantage of the running tests feature, but you need to configure a PHPCLI interpreter and every version has its own executable path.

## Find Laravel Valet PHP executable path

You are going to be able to see all the php versions that you have been available using Valet by running this command in the terminal:

```
ls /opt/homebrew/Cellar
```

Here you would find different directories for different PHP versions, in this example I am using `php 8.0.18`, so I can see the executable files here:

```
ls /opt/homebrew/Cellar/php@8.0/8.0.18/bin/php
```

exactly this is the path to set this PHP cli interpreter to your project in PHPStorm.

You can replace the values as your needs:

```
ls /opt/homebrew/Cellar/php@<PHP_VERSION>/<PHP_VERSION>/bin/php
```

You can dive into the Cellar directory to check the different versions and get a list of accurated with the php files that you need for your current version.

Now you can run the tests and it should work.
Ðe eþ and þorn movement I'm starting.
Tags: watercooler
Published: 2022-04-23 19:11:29

I really like eþ (Ðð `Ðð`) and þorn (Þþ `Þþ`) as letters, I þink they're elegant. (Plus, I'm really simping for ðe design of lowercase eþ (ð), idk why.)
So, in any languages ðat have ðe "th" digraph, I will replace it wiþ ðe respective letter.

For reference, Þ makes ðe "th" sound in "**th**ink",
and Ð makes ðe "th" sound in "**th**at".