teleren/devto huggingface dataset:
Daily Tutorials
Published: 2023-08-30 20:32:19

I would like to keep a diary to ensure that my exercises are not in vain.

Currently, I am learning ASP.NET, and today I made significant progress by understanding how to host my apps on the internet. So far, I've been experimenting with local applications on my laptop, but I had no idea how to publish them on the internet.

After exploring Azure, I decided to try out this platform. Therefore, I created an account and received a €200 voucher. This should be sufficient for my experiments.

The first tutorial covered deploying an ASP.NET application without databases using Visual Studio. It turned out to be surprisingly simple. Through the project's context menu in the explorer, I selected the "Publish" option and then signed in to Azure using a wizard. And just like that, the website was online. I didn't have to perform any complex manipulations in the Azure-CLI or Azure Portal.
[[Tutorial Link](https://learn.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=net70&pivots=development-environment-vs)]

In the next tutorial, I learned about deploying an ASP.NET application with a SQL database connection. This required more steps.
1. First, we prepared a Resource Group and a database. A special wizard in Azure (Web App + Database in the Marketplace) helped us set up all the necessary resources.
2. Next, the new App Service provided us with a ConnectionString to access the database.
3. Then, I deployed an application from GitHub. This was an entirely new approach for me. Azure's Deployment Center connected to the GitHub repository and tracked all changes. In this process, we had to use the new ConnectionString and continue the migration. I also learned that with GitHub, you can edit content using the browser-based Visual Studio Code. So, I edited the _appsettings.json_ file and a workflow _YAML_ file, and all changes were instantly reflected in Azure.
4. We now had a functional web application, but the database lacked structure, no schema. I resolved this by SSH into the Azure Portal, starting a terminal, and performing a migration.
[[Tutorial Link](https://learn.microsoft.com/en-us/azure/app-service/tutorial-dotnetcore-sqldb-app)]

At the end, my application was up and running, and the data was successfully stored in the database.

I believe that if I have a simple app, I can configure the ConnectionString on the local host. Instead of migrations, one could also utilize a script for the database. Nevertheless, I'm glad I delved into this complex process, including YAML and Git. While it might be challenging at the beginning, once you grasp the mechanics, everything works smoothly and becomes an invaluable skill.

Tomorrow, I will attempt to repeat everything using Azure CLI.
Named Arguments in JavaScript: Cleaner Code with Destructuring
Tags: javascript, tutorial, programming, beginners
Published: 2023-08-30 20:29:03

Hey there, fellow developers! 👋

Today, I want to share a coding practice that has been a game-changer for me: **Named Arguments** in JavaScript. 🚀

## What are Named Arguments?

Named arguments, accomplished through ES6 Destructuring, offer a fantastic way to make your code cleaner and more readable. Imagine saying goodbye to those confusing argument orders and handling undefined values!

Here's a quick peek:

```javascript
// Standard arguments
function createProduct(name, priceInEur = 1, weightInKg, heightInCm, widthInCm) {
  // Your functionality
}

// Named arguments
function createProduct({ name, priceInEur = 1, weightInKg, heightInCm, widthInCm }) {
  // Your functionality
}
```

## Applying Named Arguments: The Right and Wrong Way

When it comes to utilizing named arguments in your JavaScript functions, there's a right way and a wrong way. Let's dive into both scenarios to see the difference.

## The Right Way: Clean and Readable

```javascript
// Create a function with named arguments
function createProduct({ name, priceInEur = 1, weightInKg, heightInCm, widthInCm }) {
  // Your functionality
}

// Call the function with clear context
createProduct({
    name: 'cookies',
    weightInKg: 20,
    heightInCm: 10,
    widthInCm: 10
})
```
## The Wrong Way: Confusing and Error-Prone
```javascript
// Create a function with standard arguments (wrong way)
function createProduct(name, priceInEur = 1, weightInKg, heightInCm, widthInCm) {
  // Your functionality
} 

// Call the function with undefined values and unclear order
createProduct('cookies', undefined, 20, 10, 10)
```
In this approach, the order of arguments becomes crucial, leading to confusion. Additionally, passing undefined values to maintain the order is error-prone and lacks clarity.

Remember, clean and maintainable code is all about choosing the right practices. By using named arguments, you enhance readability, context, and extensibility.

Now, armed with this knowledge, you can confidently write functions that are more self-documenting and developer-friendly. 🚀

## 🌟 Advantages of Named Arguments
The order of arguments becomes irrelevant.
No more passing undefined for optional parameters.
Improved code extensibility and maintainability.
Enhanced code legibility and context.

Remember, like any tool, named arguments are best used wisely. Keep your codebase clean and maintainable! 🧹

Keep coding and stay curious! 😊
![](https://media.giphy.com/media/xUA7b8VnHVOMeTawFO/giphy.gif)
Visual Migraines
Published: 2023-08-30 20:23:49

So, for something completely different.

The other day, i think it was monday, i suddenly started getting a visual migraine. It starts with like, the tiniest spot in you visual aura that you could spot. Like a small bug. A something. But i immediately realized it was there. 
So i drove on for lil to confirm it was there (as in, actually a thing and slightly growing). And that moment may be the only dangerous part really, realizing it is happening; but by now i got totally used to it. And it further progressed as usual.
And i knew. Practically, the visual thing is not an issue. At all. However, in about a minute or 5-10. And lasting up to a +35-180minutes. Effects will kick in.
I got used to effects over time and they become way lax if you actually. relax. any amount of stress may strengthen it. Any amount you go with the flow, it just fades. 
Anyways, parked the car, just 3 minutes away. All safe and in onset. Walked the dog as usual. After half a mile the river where i sat for a good 35 min+. Dog getting b0red, we heading back and all good. Slowly. 
Just a testimony. #visualmigraine attacks
#DEVDiscuss: Marketing for Developers
Tags: devdiscuss, discuss
Published: 2023-08-30 20:13:28

---
title: #DEVDiscuss: Marketing for Developers
published: true
description: 
tags: devdiscuss, discuss, 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bslouhkp1m62nbt9lz3n.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-07-26 18:51 +0000
---
Time for #DEVDiscuss — right here on DEV 😎

{% embed https://dev.to/inovak/marketing-for-developers-the-unconventional-guide-3a1j %}

Inspired by @inovak's Top 7 post, tonight’s topic is... Marketing for Developers!
 
For developers, marketing is a blend of technical expertise and communication skills aimed at showcasing a product, tool, or service. Unlike traditional marketing, where the focus might be broader and less specialized, marketing for developers requires an understanding of the specific needs, languages, and problems that developers face. 

### Questions:
- **What role does social media play in marketing for developers?**
- **Can you share examples of developers who have excelled at marketing?**
- **How can developers work on building their personal brand alongside their technical skills?**
- **Any triumphs, fails, or other stories you'd like to share on this topic?**
Imports in Node.js
Published: 2023-08-30 20:06:40

There are two main ways in which you can import code from another file (module): 

1. Import only the exports you are interested on (using curly braces)
2. Import all the exports into an object (using `import * as ...`).

However, keep in mind that the option you choose can impact the way you name your exports.

If you are going to import only the exports you are interested on you may want to append more information to the name of each export. For example:

```javascript
// users.service.js
export function listUsers() {}
export function createUser() {}

// controller.js
import { listUsers, createUser } from './users.service'
```

On the other hand, if you are going to import all the exports into an object you can shorten the names of the exports

```javascript
// users.service.js
export function list() {}
export function create() {}

// service.js
import * as userService from './users'
```

It seems to me that `userService.list()` is a bit more clearer and simpler.
Building a privacy-first health app - update #1
Tags: food, nutrition, opensource, redwoodjs
Published: 2023-09-14 18:25:41

---
title: Building a privacy-first health app - update #1
published: true
date: 2023-08-30 19:48:26 UTC
tags: food, nutrition, opensource, redwoodjs
canonical_url: https://n00bgineer.wordpress.com/2023/08/31/openhealth-update-1/
---

## **Introduction**

**OpenHealth** is an open-source & end-to-end encrypted, nutrition & health tracking application, where the users can simply search or scan the food they consume and get weekly personalized insights about their nutrition intake.

## **Updates**

1. I was able to complete the basic setup for the application which includes the setup of landing page, authentication, theming and other boilerplate stuff. Though I was able to build this quickly because it’s effectively a fork of [**Tracepath**](https://github.com/n00bgineer/tracepath) (now called OptiSentry).

## **Next steps**

I’ve decided to complete the application prototype by **September 10th 2023**. The next steps for the project are as follows:

1. Figuring out how to use USDA’s FoodCentral REST API endpoints and testing them out. I plan to use it to store and display the nutritional information to the users.
2. Updating schema to reflect the structure need to capture a user’s food consumption and nutritional intake.
3. Figuring out how to use Google’s image labeling API. I plan to use it for the food scanning feature.
4. Figuring out how to implement end-to-end encryption for CRUD operations on this application.

## **Screenshots**

![](https://n00bgineer.files.wordpress.com/2023/08/screenshot-from-2023-08-30-18-50-50.png?w=1024)
_Landing Page_

![](https://n00bgineer.files.wordpress.com/2023/08/screenshot-from-2023-08-30-18-51-08.png?w=1024)
_Feature section of the landing page_

![](https://n00bgineer.files.wordpress.com/2023/08/screenshot-from-2023-08-30-18-51-37.png?w=1024)
_Pricing section of the landing page_

![](https://n00bgineer.files.wordpress.com/2023/08/screenshot-from-2023-08-30-18-51-56.png?w=1024)
_FAQ & CTA section of the landing page_

![](https://n00bgineer.files.wordpress.com/2023/08/screenshot-from-2023-08-30-18-52-09.png?w=1024)
_Sign up page_

![](https://n00bgineer.files.wordpress.com/2023/08/screenshot-from-2023-08-30-18-52-17.png?w=1024)
_Login page_

![](https://n00bgineer.files.wordpress.com/2023/08/screenshot-from-2023-08-30-18-59-28.png?w=1024)
_Reset password page_
Handling 'Unexpected End of ZLIB Input Stream' Dev Challenge
Published: 2023-08-30 19:39:48

Hello fellow developers,

I'm currently tackling the issue of the "[Unexpected End of ZLIB Input Stream](https://unexpectedendoffile.com/unexpected-end-of-zlib-input-stream/)" error in my project, and I'm seeking some insights from the community. I've encountered this error while working with compressed data and network transfers.

Here's a snippet of the scenario:

python
Copy code
# Python code snippet
import zlib

try:
    # Some code involving zlib compression
except zlib.error as e:
    print("ZLIB Error:", e)
I'm getting the error message "Unexpected End of ZLIB Input Stream." Despite my efforts, I can't seem to pinpoint the root cause.

Has anyone else encountered this error? What could be the potential reasons for it, and how did you go about resolving it? Any guidance, tips, or experiences you can share would be immensely helpful.

Let's collaborate and brainstorm solutions together. Your expertise is highly valued. Thank you in advance for your contributions!
Understand the 5 Phases of the APM Model
Tags: agile, methodology, performance, software
Published: 2023-08-30 19:30:40

In this post, we dive into each of these phases to understand how they contribute to the overall success of Agile projects.

## 1. Initiation Phase

The first phase is the initiation phase, where the project is defined and the goals and objectives are established. This phase also involves the product owner establishing the product vision. 

## 2. Release Planning Phase

The second phase is the planning phase, where the statement of work is developed. This includes defining the scope, creating a  a schedule, budget and user stories whilst the product owner maintains a product backlog. 

## 3. Development Phase

The third phase is the development phase, where the project plan is put into action. This involves the product owner and development team coordinating resources, managing risks and reevaluating the user stories planned according to schedule. 

## 4. Review and Adapt Phase

The fourth phase is the review and adapt phase, where progress is tracked and any necessary adjustments are made. This includes evaluating existing features, monitoring project performance, managing changes, and ensuring that the project stays on track. 

## 5. Close Phase

The final phase is the closure phase, where the project is formally completed and closed out. This includes conducting a final review, documenting lessons learned, and transitioning any deliverables to the appropriate stakeholders. 


Overall, the APM model establishes a clear vision and roadmap to fostering collaboration, adaptation, and continuous improvement, each phase plays a crucial role in the project's success. .
Entorno de Desarrollo para empezar a desarrollar aplicaciones Moviles I
Tags: android, flutter, programming, firebase
Published: 2023-08-30 19:12:58

## **Instalacion de Android Studio**
1. Ir a la pagina oficial de Android Studio y darle clic en "Download Android Studio Giraffe".
[`https://developer.android.com/studio`](url)
![AndroidStudioGiraffe](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qrg1az1emzmihoskg8xj.png)
2. Acepta los terminos y condiciones de la ventana que te aparece a continuacion y automaticamente se te descargara el paquete de instalacion.
![Terminos y condiciones](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/htnzekgwse5bctqp5vmv.png)
3. Una vez descargado abre el paquete(con permisos de administrador) y dale **next** a todo a menos que quieras cambiar la ruta de instalacion.
![packete](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07hq9kdfegkmjeppv1h1.png)
![pack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dh6oz12pes7l220r181q.png)

## **Instalacion de SDK Manager**
1. Una vez abierto Android Studio, debes instalar el SDK Manager. Ve a la opcion more acctions y selecciona SDK Manager.
![moreactions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k4jlcmory5a1qlraaedr.png)
2. En la opcion de SDK Plataforms, instalaras las versiones desde el Android 13 hasta el 7, para evitar complicaciones con la compatibilidad.
![SDKPlataforms](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9pts4wign89i6kbr1656.png)
3. Terminado la instalacion cerramos y volvemos a la pagina de inicio.
![finish](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/76zb9ys5zefo2le1nn73.png)

## **Instalacion del Emulador**
1. Instalacion de Emulador, para poder ver los cambios en nuestro proyecto. Hacemos clic en "More actions" y dentro de ahi seleccionamos "Virtual Device manager"
![emulador](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cx7f2t2vg9y2go058oio.png)
2. Nos llevara a esta ventana, podemos ver que se nos descarga un emulador predeterminado pero para mas rapidez, procedemos a seleccionar uno nuevo y hacemos clic en "Create Device".
![newemulator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fyvco1wbh92i4cvbo8ds.png)
3. Seleccionamos la categoria de "Phone" y "Phone 7 pro", luego le damos clic en next.
![selection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5tyavbfe5263imv3gznx.png)
4. En la Imagen del Sistema, vemos que tenemos ya descargado la imagen R, pero seleccionamos el Tiramisu, ya que es mas rapido, una vez seleccionado le hacemos clic en next.
![Imagesystem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mn3m2y2r1uxumfasgce2.png)
5. Acto siguiente el emulador tambien se comenzara a descargar.
![fin](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdrq8qqlbhzioomu0tzs.png)
6. Verificamos la configuracion y le damos clcic en "finish"
![finish](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxtu5m9to425gto41lv5.png)
7. Nuestro emulador se habra creado correctamente.
![emulator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z5705yrfspi47f6fsc7t.png)
New infrastructure monitoring integrated w/ APM eliminates screen swivel & peak billing
Tags: devops, observability, productivity
Published: 2023-08-30 19:09:51

Hi, devs! 

We have an exciting new launch at New Relic! 🚀

Today, we’re announcing the general availability of connected infrastructure and application performance monitoring (APM). 

It’s an observability experience that allows you to correlate your performance across infrastructure, APM, and the rest of your stack to remediate problems faster than ever, without swiveling between tools.

And New Relic consumption-based pricing eliminates peak billing and predatory pricing practices of other observability vendors, allowing you to consolidate all of your telemetry data onto a single observability platform at 1/3rd the cost.

🔗 [Check out our launch announcement!](https://newrelic.com/blog/how-to-relic/connected-infrastructure-and-apm?utm_source=devto&utm_medium=community&utm_campaign=global-fy-24-q2-connected-infra-apm)


-Daniel
Programming 101:types of programming languages
Published: 2023-08-30 18:57:53

As we all know there are many programming languages e.g. java, C, Javascript, Python and many others. However, before picking any programming language it is important to know which category it falls under. Knowing the category is pretty simple since there are only two:

Statically typed programming languages

Dynamically typed programming languages

Before defining the two categories let's first define type checking. Type checking is the process of verifying that the data types used in a program are consistent with the declaration rules of a programming language.

Statically typed programming languages are simply languages where you have to specify the type of variable you are using in your code. This is because type-checking in static programming languages occurs at compile time. See the example below.

Example:

In java

String x = ‘Stan’;

As seen in the example above we have to specify the type of the variable x otherwise there will be an error in our code.

On the other hand, Dynamically typed programming languages are languages where we don't have to specify the data type of the variables used in our code. Type checking occurs during time. eg

In Javascript:

Let name = ‘Stan’;

In the example above we don't have to specify the type of our variable and the code works fine.

Follow me for more Javascript-related articles.
Git & Semantic Commits
Tags: git, github, programming, webdev
Published: 2023-08-30 18:37:05

The usage of semantic commit messages in our code makes it easier to identify commits and what was worked on; it's critical to maintain the pattern across the team. I invite you to learn a bit more on how to create nice semantic commits messages and bookmark this article to show your team :)

To ensure consistency throughout the source code, keep these rules in mind as you are working:

- All features or bugs must be tested by one or more specs (unit tests)

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:

```
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
```
- The header is mandatory and the scope of the header is optional.

- Any line of the commit message cannot be longer 100 characters! This allows the message to be easier to read on GitHub or any other Git tool;

Samples:
`docs(changelog): update changelog to beta.5`
`fix(release): need to depend on latest rxjs and zone.js`

## Type
Must be one of the following:

***build***: Changes that affect the build system or external dependencies (e.g: npm)
`build(ASM-123): update of the packages.json new versions of node `
***ci***: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
`ci(ASM-123): update of ci travis files in order to allow  deploy to the new environments`
***docs***: Documentation only changes
`docs(ASM-123): adding a new documentation to the card-component`
***feat***: A new feature
`feat(ASM-123): working on the card-component feature`
***fix***: A bug fix
`fix(ASM-123): bugfixing of the start date on the card-component`
***perf***: A code change that improves performance
`perf(ASM-123): performance improvement on the get method.`
***refactor***: A code change that neither fixes a bug nor adds a feature
`refactor(ASM-123): refactoring the legacy post method to the new version of the framework.`
***style***: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
`style(ASM-123): removing semi-colons not required`
***test***: Adding missing tests or correcting existing tests
`test(ASM-123): adding new test cases to the post method`

## Scope
The scope should be the ticket of the change you're working on for example: (ABC-123, CBA-432 and so on). That will give visibility on what that commit was worked on.

## Thank you

By my experience, we've been using this approach and my current team and our it made our life a lot easier when seeking for a commit on the three. Give you a change and favourite this post. See you soon mate!
Deploy Spring Boot App to Render
Tags: springboot, java, docker, cloud
Published: 2023-08-30 18:25:36

## Render.com
Render is an alternative to Heroku with a free tier. We can deploy a Spring Boot app here with a Dockerfile.

## Dockerfile contents 
(place at root of repo, change according to artifact name, version and jdk versions)

```
#
# Build stage
#
FROM maven:3.8.3-openjdk-17 AS build
COPY . .
RUN mvn clean install

#
# Package stage
#
FROM eclipse-temurin:17-jdk
COPY --from=build /target/demo-0.0.1-SNAPSHOT.jar demo.jar
# ENV PORT=8080
EXPOSE 8080
ENTRYPOINT ["java","-jar","demo.jar"]
```
## Render instructions

New -> New Web Service -> Connect Github or Gitlab -> Pick Docker runtime -> Create Web Service


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n1v6pb3horyo50oo4kwl.JPG)
Book Doctor Appointment Online | Online Lab Tests in Hyderabad | Curemetric
Published: 2023-08-30 18:12:33

Booking a doctor's appointment online offers convenience and efficiency for managing your healthcare needs. With just a few clicks, you can secure an appointment without the hassle of making phone calls or visiting the clinic in person. Booking doctor appointments online saves time, reduces the risk of errors, and allows you to manage your healthcare from the comfort of your home. Our modern approach to healthcare empowers you to take control of your well-being efficiently.
Best Universitygist Platform Found
Published: 2023-08-30 18:06:42

I was completely unsure about the process of gaining admission to my ideal school, until I came across the school news portal at [https://universitygist.com.ng/category/school-news/](https://universitygist.com.ng/category/school-news/). This platform guided me on how to successfully apply for admission to various schools in Nigeria. Moreover, it also provided me with [past questions](https://universitygist.com.ng/category/admission-list/) and answers to aid in my studies.