teleren/devto huggingface dataset:
Baterías de coche de las marcas líderes del mercado
Published: 2022-01-03 17:42:18

Baterías de coche de las marcas líderes del mercado
Comprar una batería de coche de una marca reconocida y con prestigio puede hacer la diferencia entre una pieza que dure de 3 a 5 años, que es el tiempo de vida útil correcto, a otra que dure solo 2 años o menos, como suele suceder con baterías de mala calidad. Baterias.com ofrece más de 140 ejemplares de baterías de arranque para coche. Firmas como baterías Varta, baterías Tudor o baterías Óptima se encuentran entre las 10 marcas de baterías más prestigiosas y solicitadas en el mercado español.

A la hora de escoger modelos específicos, la batería varta E11 Blue Dynamic está posicionada como una de las primeras opciones de compra. Es usada en vehículos de marcas europeas como Audi, Chevrolet, Mercedes Benz o BMW. La pieza cuenta con medidas de 74AH 680A y 12V y es una batería con tecnología PowerFrame, que da una gran potencia de arranque y proporciona alto rendimiento en los coches por períodos prolongados de tiempo.

Comprar baterías de coche de la forma más sencilla posible
El primer paso para adquirir baterías de forma online y desde la comodidad del hogar es seleccionar la batería de preferencia en la página web de Baterias.com. En caso de no saber cuál es la indicada, la empresa tiene un servicio de atención al cliente totalmente gratuito para guiar y asesorar al comprador.

Después, se realiza la compra por medio del sistema de pago que sea de mayor agrado para el cliente, como transferencia, tarjeta de crédito o PayPal, de forma 100% segura. Para finalizar, se indica el sitio donde se entregará el producto, para que el cliente pueda tenerlo en menos de 2 días en la puerta de su casa.

En Baterias.com, se pueden encontrar baterías de coches a precios económicos. Las ofertas de la web pueden llegar hasta el 40% de descuento, en comparación con otras tiendas físicas. 

[ver mas...](https://diariodecapital.com)
Baloonza IT newsletters weekly digest #18
Tags: javascript, react, startup, css
Published: 2022-01-03 17:30:52

Happy New Year!

### CSS, design

- [CSS Animation Weekly #281](https://app.baloonza.com/issues/11021?baloon_issue_id=18) 
Some scroll animations, explore daylight cycles and lots of other inspiration.

- [📝 [CSS-Tricks] 283: Happy Holidays!](https://app.baloonza.com/issues/11039?baloon_issue_id=18)
:has() is :here(), cool things you can do with CSS and text,  new spelling and grammatical tools.


### Product Hunt Daily

- [Most upvoted](https://app.baloonza.com/issues/11028?baloon_issue_id=18)
2021’s most upvoted products, Volume I

- [Killing it](https://app.baloonza.com/issues/11055?baloon_issue_id=18)
2021’s most upvoted products, Volume II

- [Up and away](https://app.baloonza.com/issues/11081?baloon_issue_id=18)
2021’s most upvoted products, Volume III

- [Top 10](https://app.baloonza.com/issues/11116?baloon_issue_id=18)
2021’s most upvoted products, Volume IV

- [5,4,3,2,1](https://app.baloonza.com/issues/11164?baloon_issue_id=18)
The 5 most upvoted products of 2021

### Hacker Newsletter
- [Hacker Newsletter #584](https://app.baloonza.com/issues/11155?baloon_issue_id=18)


### Frontend, javascript, React

- [Frontend Weekly - Issue 286](https://app.baloonza.com/issues/11085?baloon_issue_id=18)
6 hidden JavaScript gems that you probably miss, top 30 Git Command, React Chat Tutorial and other

- `Awesome Javascript Newsletter` [💻 Issue 293 - PrinceJS: Prince of Persia](https://app.baloonza.com/issues/11139?baloon_issue_id=18)
New in Node.js: "node:" protocol imports, Auto-Currying In TypeScript, Lessons Learned Achieving 100% Test Coverage

- `Awesome React Newsletter` [💻 Issue 211 - 5 Best Online Courses to learn React.js with Hooks in 2022](https://app.baloonza.com/issues/11142?baloon_issue_id=18)


### Data Science Weekly Newsletter
- [Data Science Weekly - Issue 423](https://app.baloonza.com/issues/11150?baloon_issue_id=18)

***
Say Bye About Hoisting Concept
Tags: javascript, webdev, programming, react
Published: 2022-01-03 17:29:01

Hello Every one.Today i will explain about a complex forgetable concept. In my experience i think its just big things which is related with some javascript topics. I we can understand this topics then we can easily understand about This. So lets start and explore about Hoisting.Variable and function ,those are hoisted in javascript.

Variable Hoisting-
At first you need to understand about variable.Every varibale have some exicutive part.When javascript execution context phase start working , There is first part is , its have a uniqe name with some role and Javascript using this name as memory reference.Then when Completed javasceript exicution first step in this time javascript save this reference name and by default define with 'undefined' variable.
Lets remember again, first step when javascript using only variable name that is called declearation and then javascript by default decleare a value 'undefined'.That is called initialaization.

But have some different with 'var' and 'let'. 
when var keyword to using a name variable , javascript decleare it and by default its define 'undefined' variable.When we are using let keyword javascript decleare it , but javascript by default not difine the value "undefuined", Its totally goes to dead gone.Thats why we can not update the value or can not using this like a var keyword variable.
And Const keyword is totally different , const keyword have specific roles.Its need to declation and initialization togetherly or same line. But If we are not using declearation and initialization in same line , its gives a syntext error for const keyword specific roles.So if you want to decleare and initialization any thins , you first need to fix syntext error. 
```javascript 
console.log(x)
let x;
"Cannot access 'x' before initialization"
```
Remember let , const hoisted and create a memory refernce but window object can not accessed let / const variable.
Funtion Hoistng :
Regular function can hoistited in javascript but regular function can  not hoisted on javascript.Its just create a memory reference.
Best Python resources from beginner to advanced 
Tags: python, webdev, opensource, beginners
Published: 2022-01-03 17:23:09

Hey there, I made this compilation of websites, courses, youtube videos for learning Python.

## 1. Courses
Couple of free courses to learn Python from scratch
- [Python Tutorial](https://youtu.be/_uQrJ0TkZlc)
- [Python Crash Course FreeCodeCamp](https://youtu.be/rfscVS0vtbw)
- [FREE MIT Course](https://www.edx.org/course/introduction-to-computer-science-and-programming-7)
- [Geeks for Geeks](https://www.geeksforgeeks.org/python-programming-language/)

## 2. Algorithms and Data structures.
Videos, texts, repositories about algorithms and data structures, 
- [Data structures and Algorithms](https://youtu.be/8hly31xKli0)
- [Geeks for Geeks](https://www.geeksforgeeks.org/fundamentals-of-algorithms/)
- [BigO Cheat sheet](https://www.bigocheatsheet.com/)
- [GitHub Repo](https://github.com/tayllan/awesome-algorithms)

## 3. Websites
Websites all about Python
- [Learn Python](https://www.learnpython.org/)
- [Real Python](https://realpython.com/)
- [Full Stack Python](https://www.fullstackpython.com/)
- [Python Tips](https://book.pythontips.com/en/latest/index.html)
- [Test Driven](https://testdriven.io/guides/complete-python/)

## 4. Web frameworks.
Some of the best Python web frameworks
- [Django](https://www.djangoproject.com/)
- [FastAPI](https://fastapi.tiangolo.com/)
- [Flask](https://palletsprojects.com/p/flask/)
- [GitHub Repo](https://github.com/wsvincent/awesome-django)
- [GitHub Repo](https://github.com/juanbenitezdev/django-rest-framework-crud)
- [Django tutorial](https://youtu.be/F5mRW0jo-U4)
- [Flask Tutorial](https://youtu.be/Z1RJmh_OqeA)

## 5. Books
For those who likes to read
- [Clean Code in Python](https://www.packtpub.com/product/clean-code-in-python/9781788835831)
- [Python CookBook](https://www.oreilly.com/library/view/python-cookbook-3rd/9781449357337/)
- [Expert Python Programming](https://www.packtpub.com/product/expert-python-programming-fourth-edition/9781801071109)
- [Two Scoops of Django 3.x](https://www.feldroy.com/books/two-scoops-of-django-3-x)

## 6. Advanced topics.
Some advanced topics, from metaclasses to machine learning
- [Be a Python Expert](https://youtu.be/cKPlPJyQrt4)
- [Python Advanced](https://youtu.be/BRn6UCw35og)
- [Machine Learning](https://www.freecodecamp.org/learn/machine-learning-with-python/)

I hope you find helpful this list and can start your Python journey.

You can follow me on [Twitter](https://twitter.com/juanbenitezdev) and [GitHub](https://github.com/juanbenitezdev) to be up to date with all my projects and content.
Form Lib 1.11 released
Tags: javascript, dom, frontend, ux
Published: 2022-01-03 17:15:43

---
title: Form Lib 1.11 released
published: true
description: Monsterjs Form Lib Release Note
tags: javascript, dom, frontend, ux
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ejfvziu74f1dk5racmn.png
series: Form Lib Release
---

Today we have released the latest edition of our Form Lib. Our library offers us the possibility to link forms with data. In addition, we have programmed here various controls that are not available in the standard. 

Only the highlights are described here. The full functionality can be found in the [documentation](https://monsterjs.org/en/doc/components/form/1.11.0/).

This release builds on [Monster 1.29](https://monsterjs.org) and contains minor improvements. 

## New Reload control

This control is a small helper that reloads content from an external url and displays it inside once it has been loaded.

```javascript
// create control
const reload = document.createElement('monster-reload');
reload.setAttribute('data-monster-url','https://example.com/')

// loader content
const defaultContent = document.createElement('div');
defaultContent.innerHTML='loading...'
reload.appendChild(defaultContent);

// append
document.getElementById('container').appendChild(reload);
``` 

or 

```html
<monster-reload data-monster-url="https://example.com">
   <div slot="default">loding...</div>
</monster-tabs>
```

## Tabs control

Tab control now fire "Content fetched" event.


_hope you enjoy it!_



## References

* [https://dev.to/schukai/monster-128-released-e4b](Monster 1.29 released)
* [Forms, nothing but forms](https://dev.to/schukai/manage-forms-with-monster-4nf5)
* [documentation](https://monsterjs.org/en/doc/components/form/1.11.0/)
* [project home](https://monsterjs.org)
* [form example](https://monsterjs.org/en/doc/1.29.0/tutorial-form-example.html)
Javascript Exicution Context
Tags: javascript, webdev, beginners, programming
Published: 2022-01-03 17:12:20

When a JavaScript engine executes a script, it creates execution contexts. Each execution context has two phases: the creation phase and the execution phase.
The creation phase

When a script executes for the first time, the JavaScript engine creates a Global Execution Context. During this creation phase, it performs the following tasks:

Create a global object i.e., window in the web browser or global in Node.js.
Create a this object binding which points to the global object above.
Setup a memory heap for storing variables and function references.
Store the function declarations in the memory heap and variables within the global execution context with the initial values as undefined.
In our example, during the creation phase, the JavaScript engine stores the variables x and y and the function declaration timesTen() in the Global Execution Context. Besides, it initializes the variables x and y to undefined.



The execution phase
During the execution phase, the JavaScript engine executes the code line by line. In this phase, it assigns values to variables and executes the function calls.



ref:https://www.javascripttutorial.net/javascript-execution-context/
Sneak'n'sort tabletop game! (Sneak´n´Sort)
Published: 2022-01-03 17:07:24

### My good friend Rike funded her tabletop game

The game is called [Sneak´n´Sort](https://www.kickstarter.com/projects/sneaknsort/sneak-n-sort-beobachte-aufmerksam-and-sortiere-klug) and the first 50 batches are already produced and being sent to the backers this exact moment! 

I've also got [this sweet one-pager on netlify](https://sneak-n-sort.netlify.app/) up, so peeps can track how the things are going. 

{% youtube g5nHy33WHWQ %}


If you're into tabletop games, or the name did intrigue the sneaky part of you - please check it out, and leave your email for future updates, via the page. Rike will also reply for all the feedback you've sent to <a href="mailto:sneaknsort@gmx.de">sneaknsort@gmx.de</a>, no lie! 

There's also a technical aspect to this whole write-up: netlify if pretty damn cool for a 100% free kinda thing!
How to structure your Terraform project
Tags: terraform, devops, beginners, codenewbie
Published: 2022-01-03 17:07:01

Hi! This article is "Terraform beginners" friendly and for anyone curious about TF best practices. If you've learned anything, it would be awesome to share this article on [Twitter](https://twitter.com/SkylerDevops) or to react in the comments here :)  
This time, we are going to talk about Terraform, more specifically, how to you organise your project/repository. What I'm going to share is "best practices" and how most companies I've seen use. If you do differently, please share!  
```
.
|
├── modules                    
│   ├── database               # first module
│   ├── networking             # second module
│   └── ...
└── main.tf
└── version.tf
└── variables.tf
└── outputs.tf
```
Let's look in details:
- modules: This is where you put re-usable code. Let's say you need to call multiple times a database. Stick the configuration in `/modules/database`, call it from `main.tf` (or whatever name) and that's it, you've got code that's a bit more DRY!
- `main.tf`: The best practice is to have a `main.tf` with either your whole configuration (if small), or the core of it and others .tf files (if long).
- `version.tf`: This is the file where you put the `required_providers` and `required_version` versions. More information in this [blog post](https://learn.hashicorp.com/tutorials/terraform/provider-versioning#explore-versions-tf).
- `variables.tf`: This file does differ from companies to companies. Some companies use a variables file specific for each environment, some use this file only for the main generic one and use another directory which I will mention below.
- `outputs.tf`: You don't always have outputs from your code. Outputs are what you want to access from somewhere else. Usually used for modules, so that you can access ID's, names and others from the resources you create in there. Example with an EKS cluster: You might want to access the endpoint. You can find outputs by looking at the section called "[Attributes Reference](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_cluster#attributes-reference)".


Slightly advanced: add a `config` folder (the name does not matter). 
```
.
|
├── config                  
│   ├── cli         
│   ├── dev         
│   └── ...
...
```
We will use this example of a cli file:
```
storage_account:
   tier: Standard
```
We'll make this works in a few steps:
1) Create a `locals` block:
```
locals {
   config_content = file("./config/${var.environemnt}.yaml")
   config = yamldecode(local.config_content)
}
```
2) Then, in the code you would access by calling `local.config.storage_account.tier`.


I hope this made sense! I want to talk more about Terraform, as it's one of my favourite tech, feel free to give me questions or suggestions :).
Generate Dynamic PDF With Custom Style In React
Tags: react, reactpdf, jsongenerator
Published: 2022-01-03 17:01:53

> “A person who never made a mistake never tried anything new.” - Albert Einstein

This article is a step-by-step guide to generate dynamic PDF. Also, view and download it in ReactJs using React-pdf library. We will also understand the basic components of the React-pdf library with real life examples.

👉 Click [here](https://www.c-sharpcorner.com/article/generate-dynamic-pdf-with-custom-style-in-react/) to read article.
5 Articles every WebDev should read this week (#01)
Tags: webdev, tutorial, javascript, programming
Published: 2022-01-03 16:55:36

A curated list of the top five web development must-reads from last week. Don't miss out on the latest web development stories and insights. Read all about the cutting edge in web development, working in tech and the new tools and frameworks while learning a few new tricks.

---

## Full accessibility tree in Chrome DevTools

> Chrome DevTools is launching a full accessibility tree making it easier for developers to get an overview of the whole tree. In this post find out how this tree is created and how to use it in your work.

https://developer.chrome.com/blog/full-accessibility-tree/

---

## Add a Service Worker to Your Site

> One of the best things you can do for your website in 2022 is add a service worker, if you don’t have one in place already. Service workers give your website super powers. Today, I want to show you some of the amazing things that they can do, and give you a paint-by-numbers boilerplate that you can use to start using them on your site right away.

https://css-tricks.com/add-a-service-worker-to-your-site/

---

## Responsive CSS border radius with the Fab Four technique

> You are probably already familiar with media-queries, which apply styling based on the browser viewport or the screen resolution, but sometimes we might need container-queries, which are still only available under feature flags for some browsers.
> Today we will implement the Fab Four technique to apply a border-radius to an element depending on its container dimension, rather than the screen width.

https://blog.logrocket.com/responsive-css-border-radius-fab-four-technique/

---

## How To Price Projects And Manage Scope Creep

> Scoping, estimating, and running digital projects can often feel like an exercise in futility. In this article, Paul Boag explains why you need to start breaking your projects down into manageable phases and why that’s the best way to achieve significant benefits.

https://www.smashingmagazine.com/2021/12/how-price-projects-manage-scope-screep/

---

## That’s Not My Burnout

> If, like many folks during the pandemic, you’ve begun confusing burnout for achievement, Donna Bungard will show you how to recognize that you’re low on fuel and give you a map of rest stops where you can refill your tank.

https://alistapart.com/article/thats-not-my-burnout/


---

Follow me on [Twitter: @martinkr](http://twitter.com/_martinkr).

Photo by [Alex Kulikov](https://unsplash.com/@burntime) on [Unsplash](https://unsplash.com)

---

[![Subscribe to the weekly modern frontend development newsletter](https://modernfrontend.dev/banner/banner_583-111.png)](https://modernfrontend.dev/)

---
Testing Stubbed Functionality in Code
Tags: testing, frontend, typescript, angular
Published: 2022-01-03 16:48:56

---
title: Testing Stubbed Functionality in Code
published: true
description: I've always blocked `console.log` when my Unit Tests run. This scenario showed me that the Unit Tests can be used to ensure the "stubbed" code will break the tests when the real functionality gets put in place.
tags: Testing, Frontend, TypeScript, Angular
series: Front-End Testing
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qkm0ad2yn23bao921jq9.jpg
---

One of the first things I do when writing Unit Tests is to stub out `console.debug` and `console.log`. I do this on the off chance that I leave one in the code. This way, there aren't extraneous console's showing in the terminal when the tests are run.

Don't get me wrong. I do not do this to be lazy. I take good care of my code and generally do not leave `console.log` all over the place. I use this code to keep things clean in the display, pure and simple.

Pure and simple that is until I realized that I had a new case for a slightly improved form of my stubbed-code.

## Original Code

Here is the original code in the `helper.ts` file ...

```typescript
beforeAll(() => {
  spyOn(console, 'debug').and.stub();
  spyOn(console, 'log').and.stub();
});
```

As you can see there is nothing more done here than stubbing out the two console options.

In `karma.conf.js`, this is included ...

```javascript
module.exports = function (config) {
  config.set({
    ...
    files: [
      'src/app/shared/_spec-tools/helper.js'
    ],
    ...
  });
};
```

## Handling Code

I mentioned in the title, handling console while testing and the code below is a simple endpoint for code I intend to write as this function gets fully fleshed out (it's a stub, conceptually ... not a Unit Test sub). I am generating the visuals that will eventually be used, but there is no backend to connect to at this point in time.

I am using `console.log` in this case to ensure I understand the values passed in and available that I intend to use some time in the future.

```typescript
handleFunctionality = (note: string): void => {
  console.log(note, this.state);
};
```

At the same time ...

1. I don't want this code displaying a `console.log` every time tests are run.
2. I do want a Unit Test against this function so that when I do change the code, this test will fail "spectacularly" as Test Driven Development says it should.

## Improved Code

So, here's the code that ensures the stubs are in place AND calls are reset after each test is run.

```typescript
let consoleDebug;
let consoleLog;

beforeAll(() => {
  consoleDebug = spyOn(console, 'debug');
  consoleDebug.and.stub();

  consoleLog = spyOn(console, 'log');
  consoleLog.and.stub();
});

afterEach(() => {
  consoleDebug.calls.reset();
  consoleLog.calls.reset();
});
```

## Summary

1. I've always blocked `console.log` when my Unit Tests run.
2. This scenario showed me that the Unit Tests can be used to ensure the "stubbed" code will break the tests when the real functionality gets put in place.
How to use routerLink in Angular to specify value of parameter in url
Tags: angular, typescript, codever, snippets
Published: 2022-01-03 16:40:29


**Project**: [`codever`](https://github.com/CodeverDotDev/codever) - **File**:  `bookmark-list-element.component.html`

Use a two-element array when specifying a route parameter:

```typescript
<div *ngFor="let tag of bookmark.tags" class="btn-group tag-list  mr-2 mt-1"> 
  <a class="dropdown-item"
     [routerLink]="['/tagged', tag]"
     title='Public bookmarks tagged "{{tag}}"'>
    <i class="fas fa-tag"></i> Public
  </a>
</div>
```

This will generate a link similar to the following [https://www.codever.dev/**tagged/angular**](https://www.codever.dev/tagged/angular), where the value of the `tag` parameter in `routerLink` is the string `angular` 

<span style="font-size: 0.9rem">
  <strong>Reference - </strong>
  <a href="https://angular.io/guide/router" target="_blank" style="font-weight: lighter">
     https://angular.io/guide/router
  </a>
</span>

<hr>

> Shared with :heart: from [Codever](https://www.codever.dev/snippets/60268af3cd228421f08d748d/details).  :point_right:  use the [**copy to mine**](https://www.codever.dev/snippets/60268af3cd228421f08d748d/details) functionality to add it to your personal snippets collection.
How to Install PHP 8 on Debian 10 Buster
Tags: linux, debian, php
Published: 2022-01-03 16:21:12

You know that PHP 8 version is released and if you are still using the below PHP 8 version then this tutorial is for you. Cause in this tutorial, I am going to show you how to upgrade your PHP version in your Debian 10 buster. 

Just you have to follow some commands to install PHP 8 in your Debian 10 buster. I will show you step by step so that you can copy the command and run it in your terminal. Let's see how we can install PHP 8 in Debian 10 buster.

Run this below command to get started:

[How to Install PHP 8 on Debian 10 Buster](https://www.codecheef.org/article/how-to-install-php-8-on-debian-10-buster)