teleren/devto huggingface dataset:
No es necesario que siempre seamos nuestra mejor versión
Published: 2020-07-05 19:19:39

Anoche después de una llamada me dormí angustiada y me levanté sin ánimos. Tengo una personita en un hombro que me repite todo el tiempo que me están pasando cosas increíbles en varios aspectos de mi vida y que las tengo que disfrutar. Pero no puedo, me cuesta, también me cuesta creer todo lo que me sucede.

Y me abrumo y pienso en qué pasaría si todo no es tan genial como parece o si de repente algo se derrumba, y es una posibilidad. No tenemos nada asegurado, pero también podemos permitirnos la angustia y la duda. Algunos conocen mi versión que enseña, que da clases de Python o que explica códigos IATA y cosas de aviones o tickets aéreos, pero detrás de eso hay una persona de carne y hueso, con emociones varias. Y no siempre estoy al 100%, es más, diría que es más común que no lo esté que que lo esté. Y está bien, no tenemos por qué ser siempre nuestra mejor versión, darnos nuestro espacio para que entren las angustias, los dolores, las dudas y los malos tragos es parte de nuestro día a día y eso incluye nuestro día a día profesional.

Llorar está bien, querer estar solo está bien, no querer hablar de lo que nos pasa está bien, no poder concentrarnos porque nuestra cabeza tiene otras cosas dando vueltas está bien, darnos la cabeza contra la pared está bien, dejar pasar unos días para volver al 100% está bien.

Los fines de semana me cuesta más el encierro que los días de semana, y extraño más el contacto humano. Anoche me dijeron cosas lindas y cariñosas y me quedé buscándole el pelo al huevo. Y no, a veces las cosas simplemente son y son hermosas, y otras veces simplemente son, y son tristes.

Y está bien que no seamos todo el tiempo nuestra mejor versión, somos humanos y por suerte sentimos.
AWS CLI Series - How to use CloudFormation
Tags: aws, cloudformation, devops, amlanscloud
Published: 2020-07-05 19:18:38

We all love to work with command line right? At least I love the ease of just opening a console and write a command to accomplish a task. I agree it may seem overwhelming at first but once we get used to it, a command line is our friend. To extend on that I am coming up with multiple posts to walk through some basic frequently used commands using which various AWS services can be controlled or managed. Yes AWS provides a whole command line only experience through which all of the AWS services can be managed. When I started learning AWS and wanted to run the CLI commands I struggled to understand the commands from the documentation and had to do lot of trial and errors to finally make them work. So I am planning to write these series of posts for such beginners who are trying to learn the CLI way of doing things on AWS.  

This post is first of many more posts where I will describe how to perform some basic management functions on various AWS services. In each post I will pick up an AWS service and provide a step by step guide to show how the service can be managed from command line.  
Details of the post can be found here: https://amlanscloud.com/awscliseries1
I created my first game in JS
Tags: beginners, webdev, javascript
Published: 2020-07-05 19:18:28


*Consistency is the key they say. Look at me posting every three months like your favorite quarterly magazine.*

#How have you been?
Before we get to the main topic, I've been recently working on the JavaScript [course](https://www.udemy.com/course/javascript-beginners-complete-tutorial/) recommended to me by one of my friends. I found it very interesting if you want to learn JavaScript from scratch, but it also taught me a different way of organizing the code and keeping it clean. I can recommend it to you the same I did with the CS50 Web Development path I finished. Working on the Udemy course makes me think of what I should learn next. Master JS, learn React, get familiar with TypeScript? Feel free to let me know what your experience and ideas are! 

#The Game
Without a further ado - check it our [here](https://codepen.io/lwolczynski/pen/qBbZvwN)!

![](https://dev-to-uploads.s3.amazonaws.com/i/zzypx474m8bqyocwvm8g.png)

It's a simple game I decided to build to test my coding skills. I have to say I enjoyed coding it, as I'm happy with the outcome. It is simple, but I feel like simple is an answer to most things. Simpler is better, easier to understand, faster to troubleshoot, more intuitive to work with. And this is one of those! One of the games for which instructions are not necessary - like Flappy Bird or Minesweeper. Check it out, have fun, let me know how you like it and how it could be improved!

#What's next
At the same time as I'm working on the JS online course, I've been working on my first project that I hope to get real users involved in. I have my domain, I have an idea how to host it and I'm working on polishing the front-end and finishing the back-end. I'll keep the rest of it as a secret for now and come back to it in my next post which may actually break the quarterly magazine rule.

Find my code on GitHub: {% github https://github.com/lwolczynski/Track-Game no-readme %}
Hey Google, defina Inteligência Artificial
Tags: inteligenciaartificial, ai
Published: 2020-07-05 18:25:21

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7i2vdzgu3ddm0pih1vb1.png)

Alguns definem inteligência com um dom divino que nos conecta à uma divindade. Outros definem como princípio de intelectualidade. Há ainda quem defina como capacidade de resolver problemas complexos com agilidade e de forma efetiva.

**Pereira (2020, p.1)**, utilizando-se das definições para inteligência encontradas nos dicionários de língua portuguesa, nos diz que

> Inteligência é a faculdade de aprender, compreender e adaptar-se.

O autor acrescenta que não existe um consenso sobre o que é inteligência e, por esta razão, definir inteligência artificial é uma tarefa muito complicada e difícil. No entanto, podemos definir inteligência artificial, segundo **Pereira (2020, p.1)**, como uma área do conhecimento humano que engloba:

> (a) sistemas que pensam como humanos
> (b) sistemas que agem como humanos
> (c) sistemas que pensam logicamente
> (d) sistemas que agem logicamente

Sendo alguns destes sistemas mais empíricos e de formulações lógicas (a e b), outros mais teóricos e ricos em proposições matemáticas (c e d). Vale notar que nenhuma delas é excludente, mas de grande importância para o desenvolvimento de novas aplicações e de novos conhecimentos em Inteligência Artificial, ou IA.

Uma vez que não há um consenso sobre o que é inteligência e parece contrastante a definição de IA, como contornar este problema? **A resposta nós encontraremos amanhã na Parte 2**.

**Referências**
[1] Pereira, Silvio do Lago. **_Introdução à Inteligência Artificial_**. Disponível em <https://www.ime.usp.br/~slago/IA-introducao.pdf>. Acesso em: 17 fev. 2020
Mocking dependencies in JavaScript
Tags: javascript, nodemodules, dependencies, npm
Published: 2020-07-05 18:58:01

---
title: Mocking dependencies in JavaScript
published: true 
description: How to mock javascript npm dependencies properly without side effects 
tags: javascript, nodemodules, dependencies, npm
//cover_image: https://direct_url_to_image.jpg
---

Haha, look at those dependencies. You can't rely on pad-left and is-promise anymore. They aren't here to save you now. Yo node_modules so fat, it created a black hole 🕳 on my SSD
Importance of fitness for a Busy person
Tags: developer, fitness, busy, health
Published: 2020-07-05 18:56:12

Often we ignore the health part in our life as we are too busy in our day to day activity or we are too lazy from getting out of our bed.

At an early age our body seem so heavy when trying to get up from bed and wished we could sleep for few more hours.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pq04qa7huebi2n8b6mzs.jpg)

But what we all don't realize is that all this laziness adds to the negative health effect we are gonna face in the mid of 20's and 30's.

As we all know, our body adapts to the environment and the behavior its being fed by us. So, our body particularly muscle and bones gets weak if we don't do any physical activity as it has no reason to be strong.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/64voyflv5aljlnhk8bu6.jpg)

And that's what contributes in our health issues in our mid 20's or 30's as at these age we start facing the *real world* and start working which means no laying on beds for long, no extra sleep time, no wasting time watching movies.

So, when you start working actively and try to push your boundaries then your body starts answering, answering you with pain, many different ones like lower back pain, headache, neck pain and much more because you were not use to pushing yourself this hard.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ow9i84pxpmaquyfl999c.jpg)

Which prevents you from achieving your potentials and eventually cause health issues. So, staying fit is a part of our life every one knows that yet people fail to do so.

And when you are engage in jobs and are busy in work then it is much more hard to find time for it.

So, one must try to realize that taking care of our body is as important as breathing, as important as eating and as important as sleeping... for, one needs to gain full support of the body to prosper in life and to achieve what is to offer for oneself.


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/sfccyw3ssfbye9e9t63d.jpeg)
What is OOP...?
Tags: oop, computerscience, codequality, codenewbie
Published: 2020-07-05 18:39:27

Starting with a basic question...

>Why do we need programming..???
✔To design Software Applications that help in solving real-world problems.
![alt text](https://res.cloudinary.com/practicaldev/image/fetch/s--_HBZhuhF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/nweeqf97l2md3tlqkjyt.jpg "Programming")

One question More...🧐

>How can we handle thousands/millions of lines of code of those complex software applications solving problems...?🙄

So, here comes the Object-Oriented Programming Paradigm...

>The object-oriented model makes it easy to build up programs by accretion. What this often means, in practice, is that it provides a structured way to write spaghetti code.
--**_Paul Graham_**

**Object-Oriented Programming(OOP)** refers to the art of decomposing an application into a number of software objects that work together.

**What are Software objects?**
Take real-world objects to share two characteristics:
**1.**they all have state and,
**2.**they all have behavior. 
For example, dogs have state (name, color, breed, hungry) and dogs have behavior (barking, fetching, and slobbering on your newly cleaned slacks).
![alt text](https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcS-H4QqXST_JsWyn4NQ1GxgcYw6fQd-bolfoA&usqp=CAU "Dog")

Software objects are modeled after real-world objects in that they, too, have state and behavior. A software object maintains its state in variables and implements its behavior with methods.
![alt text](http://journals.ecs.soton.ac.uk/java/tutorial/java/objects/images/object_trans.gif "Object")

In a Software Application,
Objects communicate with each other by sending
messages to each other. 

For e.g., a Circle object 
Data will be a center (x and y coordinates) and the radius. 
This object will have methods to be able to set its center coordinates or its radius, and report its radius to other object.
 

>Thus, **_Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects._** An object can be defined as a data field that has unique variables and methods.
Git for solo developers
Tags: discuss, git, dev
Published: 2020-07-05 18:36:41

I am curious to know how solo developers out there are using Git.
Is it just for backup ? Are you using version control and how, with a gui app or directly via cli ? If you are using branches, what is your logic (features, bugfixes, ...)?
Finally some real life cases where git saved your axx ..
Trying to streamline a workflow myself, so thanks all !!
Saving Session Data with Connect-Mongo
Tags: mongodb, express, codenewbie, todayilearned
Published: 2020-07-05 18:31:31

I recently completed a full-stack application using Express-Session to store user sessions, PassportJS authentication with a local strategy, and deployed it to Heroku. However, after a successful deployment I saw the following error:
>Warning: connect.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process.

Luckily, I was able to find a helpful [github link](https://github.com/expressjs/session/issues/556) instructing me how to fix the issue. Instead of using the default MemoryStore to store session data, I needed to find a way to store the data. There are many available session stores listed, and you can choose whatever you like. Since I was already using a Mongo database, I wanted to take advantage and use that to store session data too.

I decided to use the more popular `connect-mongo` [package](https://www.npmjs.com/package/connect-mongo) to connect to my database. After installing the package, I used the existing connection to my database.

##My code changes
I was able to connect via mongoose using only a few new lines of code! This is assuming the app is already configured with express-session.
1.  `const MongoStore = require('connect-mongo')(session)` to add the package in to my app
2. Add this line to modify my existing `app.use` to add a store option as follows:

```
app.use(session({
  secret: process.env.SECRET,
  resave: false,
  saveUninitialized: false,
  store: new MongoStore({ mongooseConnection: mongoose.connection })
}))
```

3. That's it! There are additional parameters you can pass in, but that's all you need to get it working.

Now, when I login to Mongo Atlas and view my project's database, I can see the session data is stored here too! 
![My sessions!](https://dev-to-uploads.s3.amazonaws.com/i/m7dc2vr3k50s9otsoy78.png)

For a simple app, this is great for me. In a larger production environment you might want to have a separate database connection for the session data, you can learn to do that in the docs.
Some Not-So-Known Features in HTML
Tags: html, webdev, tutorial
Published: 2020-07-05 18:20:31

Hi,We all pretend that we know HTML very well but there are something always there to learn more about it                     ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wdzsh154c22o1we9kydr.JPG)
-->It lets you edit the content of the element inside the browser just by clicking on the content.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ywo75pnc2h3b15slbs0v.JPG)
-->Yes,you read that right you can hide html elements without the help of cssby using the hidden attribute.It works more like CSS:- "display :none "
i.e it takes no space.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/olkxvhfnr2ql2g50hsda.JPG)

-->Now, coming on to my favourite this is one of the best thing i have ever known in HTML.
-With the help of this meta code you would be able to refresh your webpage every 'X' seconds whatever you mention inside the content attribute.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/lco2292eadnbpo2nw9qh.JPG)
Thanks for reading!
Don't forget to like this post and tell me in the comments how many of them you knew .
Blocked? Prepare to unblock
Tags: softwaredevelopment
Published: 2024-02-28 09:41:47

---
title: Blocked? Prepare to unblock
published: true
date: 2020-07-05 18:15:04 UTC
tags: softwaredevelopment
canonical_url: 
---

Many times during my career I’ve been blocked from completing my work. Be it feature implementation, bug fix or some kind of software migration I couldn’t finish until someone else does their job first. What to do during this time?  
  
I learned that you can’t just say “I’m blocked and can’t do anything until I get unblocked” because there’s so much you can do to prepare for when you get unblocked. Let’s say you are implementing a new feature and need to get the data from server. This new feature is also new for server and it doesn’t have the API you need right now. Instead of waiting or annoy server developers with constant pinging you could prepare for the moment API gets implemented. The goal is to have the least possible amount of work remaining to complete your feature. In this example you could use the time to create tests for your feature before implementation (remember the TDD?). While writing tests you’ll probably need to make some mock data. With mock data you can already continue implementing the feature and get it close to completion. With this approach not only you’ll be faster to complete the feature once you get unblocked, but your implementation will already have covering tests.
AutoTyping.js: create animated typing effect
Tags: javascript, autotyping, showdev
Published: 2020-07-05 18:14:59

# AutoTyping.js

[AutoTyping.js](https://tsanak.github.io/autotyping) is a lightweight (1.86 kb) and easy to use library that helps you create animated typing effects.  

It is a very small project that I finished in this weekend, so it is not super polished or feature rich.

Learn more about it on the [Github repo](https://github.com/tsanak/autotyping) or at [it's website](https://tsanak.github.io/autotyping).

## See it in action
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/f6n5qo2mp0gu4a5nbor5.gif)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1450srfhga5p666oeh3f.gif)

## How to use

1. Grab the minified version of the library from `dist/autotyping.js`
2. Create the html element: ```html
<span id="selector"></span>
```
3. Create a new instance of the library:
    ```javascript
    const typing = new AutoTyping('#selector', [
        'array of',
        'text',
        'lorem ipusm'
    ]);
    ```
4. Start the typing effect
    ```javascript
    typing.start();
    ```

## Options

There are a few options to customize the behavior of the library and you can find them in [Github repo](https://github.com/tsanak/autotyping).

Some of them are the following:

- **typeSpeed** (Integer) in ms, default: 150 
Controls the writing speed of each character.

- **deleteSpeed** (Integer) in ms, default: 150
Controls how fast/slow each character is deleted.

- **waitBeforeDelete** (Integer) in ms, default: 1000
Controls the waiting time before deleting a word.

- **waitBetweenWords** (Integer) in ms, default: 1000
Controls the waiting time before writing the next word.

## Examples in Codepen
{% codepen https://codepen.io/tsanak/pen/vYLddQQ %}

## Outro

Hope you found this useful, I will gladly accept any comment (improvement, bug, opinion) about this in the comments below 🙂.
Online Code Editors
Tags: editors, programming, productivity
Published: 2020-07-05 18:12:33

I have listed Online code editors! 
[First two editors will be suitable for many environments]

* Codesandbox.io
* Stackblitz.com 
* Scrimba.com (Special mention and kindly visit!)
* jsbin.com
* jsfiddle.com
* repl.it
* playcode.io
* jseditor.io
* jsitor.com

------
~ Thank You.

### Support Me
* [Youtube - Vuelancer](https://www.youtube.com/channel/UC0hmXRqXYVO0mocVt5D3GkQ)

* [Github - Vuelancer](https://github.com/vuelancer)

* [Scrimba](https://scrimba.com/@selvakumardhivakar)

* [Vuelancer - Patreon](https://patreon.com/vuelancer)
My first dive into programming with a game
Tags: webdev, programming, beginners, android
Published: 2020-07-05 17:58:55

This all started in the year *2018* when i first thought of making a mobile game with no knowledge. Yes, zero knowledge. 

I got inspired by watching a youtube video of how to make a game in unity. Why a game, I was very crazy for video games back then. I played for hours an enjoyed playing. I know everybody does. Games are really awesome especially when the graphics are breath taking.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/tffpehbdk0hcsaaxmb0g.png)

So, when i came across that video it inspired me to try and make one so i followed the tutorial installed all the required software and started to work on it(Yeah)...

But... To tell you the truth i didn’t understand a single thing in that software(which was unity) and the codes i wrote in the beginning(all the complex calculations of physics and maths) it was in *c#* and I didn't had an idea what it was.?, I was just following the video like a dummy for few days. Man it was frustrating...

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/n9ezoqukj5mlykzkb90i.jpg)

But then i followed more tutorials as i was eager to learn and at last built a game... Kind of... I wouldn’t call it a game, I don't know what to call it but for now let’s call it a game.

OK, now what I made, *Big Time*, It only walks and jumps, yes you heard me, It only walks and jumps. It is a game of an early man age. But yes, the character on my game can do a moon walk, unbelievable right.... Here it is...
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zifncnx1ur3zu3dm84r3.gif)

Yes, I know the quality is poor but this is what I only have as a record of that moment.

But, after this game my whole journey of stepping into the world of programming began and eventually started learning different languages and frameworks. And now here i am developing Android and web app. A lot more better than when i first began.

So, this was it how it all began, Thanks for reading if you did.
This is my first blog so its kind of gibberish, hopefully will try to get better at it until then see you next time... 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/aliw7glfzybt9q6l49ut.gif)
Is It Ethical to Design the exact copy of application ?
Tags: discuss, beginners, career, watercooler
Published: 2020-07-05 17:58:11

While the boycott China discourse has really strengthened in recent times in India, underlined by patriotic sentiments and Prime Minister Narendra Modi's call for vocal for local and 'aatmanirbhar' initiatives, it remains to be seen how lasting an impact does this have in Chinese companies and products. Thus, it makes Indian citizen to use or develop their alternatives.

Hence following this trend, I was finding the alternative for Zoom app and what I found is [JioMeet](https://play.google.com/store/apps/details?id=com.jio.rilconferences&hl=en_IN). I mean, I don't understand where are lakh of crores of rupees are being spent on. Does lobbying in India cost so much that there is nothing left for product design?

I mean just look at the photos of Zoom app VS. JioMeet App, they just manipulate the color properties of Zoom. 

![](https://qphs.fs.quoracdn.net/main-qimg-de24493ddd53b5ea6367b03bf6c54a11)

![](https://qphs.fs.quoracdn.net/main-qimg-416605101b2612cfa1fb4e69fc9b9e5b)

![](https://qphs.fs.quoracdn.net/main-qimg-ea74a90d21f372ffbf667dee6657e0b5)

__What you think about?. Will It works?__

Taking advantage of the current situation which has opened a enormous amount of possibilities is a brilliant move __But__ the creation of an app that is an exact copy of another application (must be banned) will be looked down not just by the users but also by the startup ecosystem of the entire world.

And this has been done by India’s one of the heaviest funded company ‘Jio Platform’.

__“The new JioMeet is a copy-paste of Zoom," wrote security researcher Robert Baptiste, who goes by [Elliot Alderson on Twitter](https://twitter.com/fs0c131y/status/1278945069450625024). “Where are lakhs of crores being spent on?" Wrote another user, adding a screenshot of JioMeet and Zoom’s interfaces next to each other.__

Twitter has gone all out bashing the new Jio Meet platform as an alternative for Zoom app but only time will tell us whether was a smart move or dumb move by the __richest man of India.__