teleren/devto huggingface dataset:
5 Reasons why I think Swift is a perfect language to learn for beginners
Tags: mobile, swift, beginners, codenewbie
Published: 2022-05-03 19:45:07

I have started learning Swift about 2 months ago to learn iOS development and so far the journey has been very fruitful. In this blog I want to give you 5 reason why I think if you beginning your programming journey that Swift is the perfect language for beginners


- Swift is a very clean and concise language:
 
The syntax of the language is very short therefore it allows you to write clean and readable code. This is one of the biggest reasons why people love programming in the Swift Language 

- Swift is the Future of Apple

Ever since Swift was announced at WWDC 2014, Apple is full steam ahead with Swift. It has and will continue to rapidly grow. Swift is used to develop iOS and Mac apps but it's also has been expanded to create tvOS, MacOS and watchOS with their newest framework SwiftUI.

- Swift is Open Source

One of my favorite reasons why I love Swift is because its open source. There are many other languages out there that are also open source but it amazing to see Apple make the language available for the community. You can submit bug fixes and feature enhancements for the language.

- Swift is Safe and Secure

Swift offer memory management (Automatic Reference Counting (ARC). What it does is it tracks and manages your app's memory usage.


- Swift is in-Demand

Swift remains a very in-demand skills for mobile app developers. If your looking to break into app development and like apple products then swift might be your answer


Resources to learn Swift?

Check out the list of resources here that I recommend you try if you want to learn Swift and iOS development

- 100 Days of Swift/SwiftUI by Paul Hudson: 
https://www.hackingwithswift.com/100
https://www.hackingwithswift.com/100/swiftui

- The Complete iOS Development Bootcamp by Angela Yu:
https://www.udemy.com/course/ios-13-app-development-bootcamp/

- Code with Chris by Chris Ching:
https://codewithchris.com/

- iOS Dev LaunchPad by Sean Allen:
https://seanallen.teachable.com/p/ios-dev-launchpad

Follow my journey of learning iOS Development on Twitter by giving me a follow @abeck617
HTML + JS + Python = hard
Tags: html, javascript, python, music
Published: 2022-05-03 18:46:48

So I’m going to make a game in Python where you hear chords/notes and you have to figure out what note it is.

I’ve already written the script for creating the note sounds, and I’ll probably save all the notes to a audio file each.

For the rules, I’ll give one minute to the user to do as many notes as they can do.

But the game will be rendered via HTML, and I’ll be saving best scores and stats in Python, so how will I connect them together?

I was thinking of doing the counting in JavaScript, choosing the random note in JavaScript, and save the score for the round in JavaScript via cookies. Then when the game ended, I could redirect to a url with the score so I could do the function in that url.
But that isn’t the best solution as that way anyone can go to the url and change their score, or they can use the console to change the cookie data anyways.
Is there a more secure way of doing this? 
Thanks
Vedas divine knowledge
Tags: beginners
Published: 2022-05-03 18:35:22

The term ‘Veda’ means knowledge. The source of all knowledge is God. The rishis heard -- with a mind made one-pointed by meditation -- the knowledge that issued from God in the form of sound. They imparted that knowledge to their disciples. Thus, the eternal truths that emerged from the Supreme, and which the rishis perceived, are what we mean by the Vedas. 

More Knowledge you get by sharing to each other, the Universe will help the person who helps other...
AWS LightSail: varios sitios en un mismo Apache
Tags: aws, lightsail, apache
Published: 2022-05-03 18:28:06

---
title: AWS LightSail: varios sitios en un mismo Apache
published: true
description: Para que pagar de mas?
tags: AWS, Lightsail, Apache
//cover_image: https://direct_url_to_image.jpg
---

Pasos para hostear varios sitios en un mismo Apache. Por las dudas, tenerlo en cuenta para que la instancia no reviente :P 

```
1. sudo mkdir -p /var/www/example.com/html
2. sudo mkdir -p /var/www/example.com/log
3. sudo chown -R $USER:$USER /var/www/example.com/html
4. sudo chmod -R 755 /var/www
5. sudo vi /var/www/example.com/html/index.html
6. sudo vi /etc/httpd/conf/httpd.conf
Add `IncludeOptional sites-enabled/*.conf`
7. sudo vi /etc/httpd/conf.d/example.com.conf
<VirtualHost *:80>
    ServerName www.example.com
    ServerAlias example.com
    DocumentRoot /var/www/example.com/html
    ErrorLog /var/www/example.com/log/error.log
    CustomLog /var/www/example.com/log/requests.log combined
</VirtualHost>
8. Restart Apache
Developer Grand Prix Contest
Published: 2022-05-03 18:07:07

I thought someone may find this event interesting:

Are you a developer working in Healthcare or FinTech? Want to compete for $22,000 in prizes? InterSystems Data Platform technology is used to support over 1 billion patients and billions of financial transactions each day. Join our developer community and sign up for the [InterSystems Grand Prix Contest](https://community.intersystems.com/post/intersystems-grand-prix-programming-contest-2022?utm_source=devcom&utm_medium=native&utm_campaign=na_ir_granprix&utm_content=sd)
Tipografias para programar
Tags: fonts, ttf, truetype
Published: 2022-05-03 18:24:47

---
title: Tipografias para programar
published: true
description: Las fuentes claras y las IDEs oscuras
tags: fonts, ttf, truetype
//cover_image: https://direct_url_to_image.jpg
---

Durante un par de semanas tengo que dejar mi maquina de escritorio (donde trabajo todos los dias) y tengo que usar la notebook para trabajar. Aparte de ser tedioso ponerla a punto para dejarla lista para desarrollo (instalarle todas las herramientras de desarrollo)... me olvide de pasar las tipografias que uso para programar

Si, ya se, no es ninguna desgracia, y se pueden volver a buscar, pero las voy a dejar aca como referencia si me vuelve a pasar

- FiraCode
![FiraCode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6nsowl0xwuku4073c4q3.png)

https://github.com/tonsky/FiraCode
Frontend: hosted REST-API para probar
Tags: mock, api, data
Published: 2022-05-03 18:21:41

---
title: Frontend: hosted REST-API para probar
published: true
description:  
tags: mock, api, data
//cover_image: https://direct_url_to_image.jpg
---

Muchas veces cuando estamos desarrollando algo para Frontend, y todavia no tenemos una API en el Backend, es un poco tedioso programar el flow.

Este sitio https://reqres.in ofrece algunas REST API dummy para poder probar nuestro frontend, devolviendo listas de usuarios, por ej, o incluso permite hacer UPDATES o DELETE, para poder probar el flow completo.

Siempre viene bien tener estas cosas a mano. Voy a intentar ir poniendolas en el blog.
Flux
Tags: aplicaciones, windows, linux, gratis
Published: 2022-05-03 18:20:31

---
title: Flux
published: true
description: Dale un descanso a tu vista
tags: aplicaciones, windows, linux, gratis
//cover_image: https://direct_url_to_image.jpg
---

Si ustedes son como yo, que se quedan hasta cualquier hora usando la compu, o se pasan mas de la mitad del dia sentados adelante de ella, probablemente este programa les venga como anillo al dedo.

Esta comprobadisimo que usar cualquier tipo de pantalla antes de irnos a dormir es bastante perjudicial para nuestro ciclo de sueño, porque la pantalla tiene un determinado tinte azul. Durante el dia, eso ayuda mucho, pero a la noche, solo confunde a nuestro cerebro, que se piensa que sigue siendo de dia.

Lo que hace esta aplicacion es cambiar el tinte a medida que va cambiando la luz del dia. Durante la mañana, esta realmente brillante y tirando al azul, y a medida que va oscureciendo, se va tornando mas naranja y mas "facil" a la vista. No es el brillo de la pantalla en si, sino que es el _tinte_ de la misma.

![Flux](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cb4vour95x2j5vkuz4wo.png)

Viene con distintos presets y se configura dependiendo de donde estas en el mundo (por eso te pregunta en que lugar del mundo estas, para tener en cuenta tu huso horario y sugerirte los valores)

![Flux Presets](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1p2h0nnf967wzzmvoref.png)

Si quieren ver como se _ve_, aca tienen un video con un ejemplo de como va moviendo el slider para mostrar la diferencia en la pantalla:

https://youtu.be/_QFrS3RxLXE 

([source](https://iristech.co/f-lux-4-beta-review-windows/))

Lo uso hace muchos años (en Windows al menos) y realmente noto que mi vista no se cansa tanto, despues de pasar 12 horas delante de la pantalla)

URL: https://justgetflux.com/

Disponible en: PC, Mac, Linux, Android y iOS (iPad y iPhone)

Licencia: Gratis (personal use)
Fiddler
Tags: api, desarrollo, web
Published: 2022-05-03 18:10:44

---
title: Fiddler
published: true
description: Como "ver" lo que le llega a nuestras API?
tags: api, desarrollo, web
//cover_image: https://direct_url_to_image.jpg
---

#Fiddler
Cuantas veces hemos necesitado "ver" que le llegaba a cierta API (incluidos headers, status, y todo lo que necesitemos), y no teniamos forma sencilla. Bueno, fear not, porque podemos usar Fiddler (https://www.telerik.com/fiddler) para justamente hacer eso

![Fiddler screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ogzpsqibvbxds5tftqag.png)

Este programa funciona como un proxy, escuchando todas las conexiones http que salen desde tu maquina.
A la izquierda, se ven la lista de conexiones.
Haciendo doble click sobre una, te muestra la info de ese request.
Lo mas usado es la parte de los Headers (donde te muestra toda la info, Request y Response), y despues tenes chiches, como el formato del response, las cookies, o si necesitas, la info en formato RAW.

Soporta tambien SSL, pero para eso hay que instalar un Root Certificate (es un poco turbio, pero bueno, para desarrollo local puede servir. Acordate nomas de desactivarlo cuando no lo necesites).

Me ha salvado mas de una vez al tener que ver porque fallaba alguna API. 

* URL: https://www.telerik.com/fiddler
* Funciona en: Windows, Linux o Mac, e incluso mobile 
* Gratis (tienen otros productos para instalar en servers, pero este particularmente es gratis)
1 and a half years learning JavaScript. Here is what I'd tell the past me.
Published: 2022-05-03 18:03:55


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

So, it has been about 1 and a half years of me learning JavaScript and honestly it has been a roller-coaster journey. If I could talk to the one year ago version of me, this is what I'd tell him:

1. **Watch more coding videos**. Watching videos of people coding shows you their thought process and it also shows you their mistakes, just to show you that everyone is human. This is especially important if you are self-taught and are experiencing some form of imposter syndrome.

2. **Start blogging**. It's very ironic that I am mentioning blogging in a blog but blogging actually helps with getting your ideas down and being able to explain your code. Another great thing is that the developer community is very friendly and people are always keen to see you improve.

3. **Finding discord servers**.  This point ties in with the second one. Just find a community on discord and you'll be able to engage with different developers around the globe.

4. **Visit different sites and try to mimic them**. The most growth I have ever experienced is when I have visited professionally built websites and trying to mimic them. This essentially throws you into the deep and and forces you to find weird and out-of-the box ways to solve the problems.

5. **In order to have structure, Read and follow _a_ book**. In the beginning of my JavaScript journey, I would just try to learn whatever I could without any kind of structure which really left me with looks of holes in my knowledge. Topics will become much clearer and if you can, write down notes just to keep track of what you have learnt. 


As I progress further with my coding journey, I expect to encounter new and challenging topics and concepts and I am ready for the challenge. The ride has been good so far and I am far from reaching my destination so I might as well just enjoy the view!
Web Development
Tags: webdev, beginners, career
Published: 2022-05-03 18:00:52

Web development refers to the building, creating, and maintaining of websites. It includes aspects such as web design, web publishing, web programming, and database management. It is the creation of an application that works over the internet i.e. websites.


Web development, also known as website development, refers to the tasks associated with creating, building, and maintaining websites and web applications that run online on a browser. It may, however, also include web design, web programming, and database management. Web development is closely related to the job of designing the features and functionality of apps. The term development is usually reserved for the actual construction of these things. The basic tools involved are programming languages called HTML, CSS, and JavaScript.


## Frontend-Development

The front-end is establishing the connection b/w the client and web browser. In simple words, it is what the user sees on a web page. It involves the “client-facing” side of web development. That is to say that it generally refers to the portion of the site, app, or digital product that users will see and interact with. A Front-End Developer, therefore, is responsible for the way a digital product looks and “feels,” which is why they are often also referred to as Web Designers. Front-End Developers will usually need to possess a solid understanding of programming languages, including HTML, CSS, and JavaScript, as well as frameworks like React, Bootstrap, Backbone, AngularJS, and EmberJS.


## Backend-Development

If Front-End Developers are responsible for how a digital product looks, Back-End Developers are focused on how it works. This means they’re responsible for overseeing what’s under the hood, including database interactions, user authentication, server, network and hosting configuration, and business logic. The primary responsibility of Back-End Developers is to ensure the functionality of the site, including its responsiveness and speed. To do that, Back-End Developers have to know how to build servers with modern frameworks (while developing custom APIs and serving static websites and files), and how to manage databases and data on a web server. Typically, they use server-side languages, including PHP, Ruby, and Python, as well as tools including MySQL, Oracle, and Git.


That's it you will be a full-stack developer 🚀

![](https://i.pinimg.com/originals/78/b5/38/78b5382c0e615ae2f56ba083a61f0506.gif)



## Thank You
Error establishing a database connection : please, help
Published: 2022-05-03 16:52:22

Hi everyone ! One month ago, my website was pirated, I've clear all my files to create a new website. I think this part is ok, but now wordpress cannot connect with the database. 
See the message :
"Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /home/lessixf/www/wp-includes/wp-db.php on line 1653
No such file or directory
Error establishing a database connection"
If someone know how to fix this, I will be soooo thankful !
Have a good day
Programming Tip #5: Sleep
Tags: sleep, programmingtips, softwarequality
Published: 2022-05-03 16:50:29

---
title: Programming Tip #5: Sleep
published: true
description: Strong evidence showing lots of good sleep improves software quality compared to little to none from choice of programming language, framework, or practice such as TDD.
tags: sleep,programmingtips,softwarequality
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxpy5ouftq1uukrsccy6.png
---

Programming Tip #5: Sleep. Strong evidence showing lots of good sleep improves software quality compared to little to none from choice of programming language, framework, or practice such as TDD.

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

Learn More:
- https://increment.com/teams/the-epistemology-of-software-quality/
[Video] Quick shout-out to DevToys
Tags: devtools, dotnet
Published: 2022-05-03 16:58:05

---
title: [Video] Quick shout-out to DevToys
published: true
date: 2022-05-03 16:50:00 UTC
tags: devtools, dotnet
canonical_url: https://blog.codingmilitia.com/2022/05/03/quick-shout-out-to-devtoys/
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u7za0yfapfcih5ich02a.png
---

Hey folks!

Wanted to very briefly share a tool I’ve come across a couple of months ago: DevToys.

It centralizes in one app a bunch of tools commonly useful when developing software. It’s unfortunately Windows only (at least for now), but it’s pretty cool and you should give it a go if you work on Windows.

Additionally, it’s open source and built with .NET, so you can also contribute if you’re up for it!

For non-Windows alternatives check out the links below.

{% youtube FpPB3TCLjfw %}

Here are a couple of related links:

- [DevToys](https://devtoys.app/)
- [macOS port](https://github.com/ObuchiYuki/DevToysMac)
- [DevBox](https://www.dev-box.app/)
- [DevUtils.app](https://devutils.app/)
- [Boop](https://boop.okat.best/)
- [Text Pieces](https://github.com/liferooter/textpieces)
- [Small Dev tools](https://smalldev.tools/)

Thanks for stopping by, cyaz! 👋
Creating and implementing key vault in Azure
Published: 2022-05-03 16:38:15


The below steps are used in creating and implementing key vault in Azure portal

- Sign in to Azure portal

- search for and select Key vaults, then select Create

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6au2x3w0g5d0tysjlmos.gif)

- Fill in the resource group, key vault name and click on create as shown in the below image 

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

- click on go to resource 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3njtah4ktn8co57z14oz.jpg)

- note take note of your Vault URL

**ADDING A SECRET TO THE VAULT CREATED ABOVE**

- Go to setting, click on secret and click generate/import as shown in the below image 

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

- Fill in name and vault value

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

- Select the secret you just created, note the the Secret Identifier. This is the url value that you can now use with applications. It provides a centrally managed and securely stored password.

- Click the button Show Secret Value, to display the password you typed earlier.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/98bgjlkii9y8qpogxqbr.jpg)

Thank you all and i hope this article help
What is Lint?
Tags: devops, beginners
Published: 2022-05-03 16:27:01

Lint or linter is a static code analysis tool that was originally introduced in 1978.  It is used to flag programming errors, stylistic errors or bugs. 

Typically you will find developers using lint testing on their software code.  But it is also something that is now being used by SysAdmins, DevOps engineers and the like. 

Lint testing can be carried out on Infrastructure as Code (IaC) again to flag any errors, formatting discrepancies, or bugs or best practice violations. 

> Tania Allard explained that "adopting standards and letting linting take care of this also frees up loads of effort/time for reviewers (as in PRs) to focus on what really matters: implementation, new features, performance/security/experience improvements, edge and not so edge cases without losing focus due to ill-formatted code."

## Why is Linting important?
Performing lint test, or linting your code is important to help reduce errors and ultimately improve the overall quality of your code. 

Lint testing should be done early on in the development of your code, whether that is software code or Infrastructure as Code.  It will help to spot any errors early and help your code writers focus on the right things. 

> Connell McGinley explained that lint testing is important because "Linters allow you to be more productive by catching errors early in the development process, instead of having to spend time debugging in production months down the line."

## How to Lint test?
Depending on what you are creating and what your code is there are multiple ways of doing lint testing.   

If you are creating your code within something like Visual Studio Code, you may find there is a plugin that can be used to help lint testing your code as you write it or to help test it at various different stages. 

Another method is performing lint testing when code is checked into your source repository. When building out your DevOps Continuous Integration (CI)/Continuous Deployment (CD) pipeline, lint testing would be part of your CI process.
Releasing some free tools ⚒️ 🪛🔧
Tags: security, productivity, devops
Published: 2022-05-03 16:15:55

I made a free web app to perform functions like DNS lookups, port checks port scans, IP Information gathering, hash generation, blacklist checks, subnet calculation and more..

Saves me some time in the infosec/net-sec space; good for those who are terminal/scripting averse..

https://net-tools.io

Enjoy 🤘🔥🤓


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