teleren/devto huggingface dataset:
Cómo crear hábitos usando Google Calendar
Tags: productividad
Published: 2020-04-22 23:05:59

---
title: Cómo crear hábitos usando Google Calendar
published: true
date: 2020-04-22 22:42:43 UTC
tags: Productividad
canonical_url: https://cornelioweb.com/habitos-con-google-calendar/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/ueo59fsc8loixhvq5sfl.jpg 
---
Google Calendar. Como su nombre lo indica, **es una aplicación de agenda y calendario gratuita de Google que viene incluida en nuestra cuenta de Gmail.**  Y que nos puede ayudar bastante a la hora de desarrollar nuevos hábitos.

Según [James Clear](https://www.goodreads.com/author/show/7327369.James_Clear) en su libro Atomic Habits. Un hábito **es una rutina o comportamiento que se realiza regularmente** y. En muchos casos. Automáticamente. 

## Planifica tu semana

![Google Calendar. Una herramienta para crear hábitos](https://i2.wp.com/cornelioweb.com/wp-content/uploads/2020/04/calendar.png?fit=774%2C420&ssl=1)

## Tener un horario

**Lo primero que tenemos que hacer es desarrollar un horario.** Dejar las cosas para “cuando tenemos tiempo” o cuando nos llegue la motivación. Es una de las principales razones de por qué nunca comenzamos las cosas o las dejamos tan fácilmente. 

Tener un horario y **ser lo suficientemente disciplinados para cumplirlo es la manera en la que naturalmente podemos desarrollar una rutina** que se convierta en hábitos. 

Algo que me encanta de Google Calendar es que **todo es tan sencillo como hacer clic en el día que nos interesa crear un evento, tarea o recordatorio.** Y todo lo demás surge de manera intuitiva. 

![Creando un hábitos en Google Calendar](https://i2.wp.com/cornelioweb.com/wp-content/uploads/2020/04/image.png?w=774&ssl=1)

**Pero una de mis funciones favoritas es la opción de poder crear repeticiones** diarias, semanales y mensuales de los eventos de los que queremos formar rutina. E incluso poder agregar a otros usuarios en caso de que la tarea que vayamos a hacer sea con otras personas. 

## Sincronización

Una ventaja es que al estar sincronizado con nuestra cuenta de Google. **Por defecto los teléfonos Android vienen sincronizados a este calendario y por igual. Los dispositivos iOS,** al momento en que agregamos nuestra cuenta, sincroniza su aplicación de calendario con nuestro Google Calendar. 

**Algo que ayuda bastante. Es el sistema de notificaciones.**  Que puede ser una gran ayuda para recordarnos minutos antes que tenemos un compromiso pendiente al que tenemos que atender. 

Y por último. ** La técnica pomodoro es una herramienta que nos permite sacar el máximo provecho a nuestras sesiones de estudio.**  Fijando intervalos de concentración de 25 minutos más 5 minutos de descanso. Pero esa es una técnica de la que hablaré en otra ocasión. 

La entrada [Cómo crear hábitos usando Google Calendar](https://cornelioweb.com/habitos-con-google-calendar/) se publicó primero en [CornelioWeb](https://cornelioweb.com).
2020-04-23 - Code with me - hangout
Tags: phalcon, phalcon4, wuhanvirus, codewithme
Published: 2020-05-12 19:53:37

---
title: 2020-04-23 - Code with me - hangout
published: true
date: 2020-04-22 22:24:07 UTC
tags: phalcon,phalcon4,wuhanvirus,codewithme
canonical_url: 
---

Join us tomorrow at 17:00 EST (21:00 UTC) for chit chat as well as some coding!<!--more-->

No script, friendly chat, hanging out, some coding, answering questions etc.

The hangout will be held on YouTube here:

[https://www.youtube.com/watch?v=lpCek02vELs](https://www.youtube.com/watch?v=lpCek02vELs)

Stay safe and keep coding!

* * *

Chat - Q&A

- [Discord Chat](https://phalcon.io/discord)
- [Forum](https://phalcon.link/forum)

Support

- [OpenCollective - Support Us](https://phalcon.io/fund)
- [Store - Merchandise](https://phalcon.io/store)

Social Media

- [Telegram](https://phalcon.io/telegram)
- [Gab](https://phalcon.io/gab)
- [MeWe](https://phalcon.io/mewe)
- [Parler](https://phalcon.io/parler)
- [Reddit](https://phalcon.io/reddit)
- [Facebook](https://phalcon.io/fb)
- [Twitter](https://phalcon.io/t)

Videos

- [BitChute](https://phalcon.io/bitchute)
- [Brighteon](https://phalcon.io/brighteon)
- [LBRY](https://phalcon.io/lbry)
- [YouTube](https://phalcon.io/youtube)

<3 Phalcon Team
Warning message:
package ‘abc’ is not available (for R version 3.6.3)
Tags: cran, repository, package, installation
Published: 2020-04-22 21:55:04

R client unable to fetch the requested package.

Have you configured RProfile with the remote mirror from where your package needs to be fetched?

If yes, Is this the command you are using?
> install.packages('package_name')

If that doesn't work, you may directly fetch the mirrors through the install command like below.

> install.packages('package_name',repos='http://cran.us.r-project.org')
JavaScript Quiz Question #2: A Set of Objects
Tags: javascript, challenge, webdev, programming
Published: 2020-04-22 21:42:04

---
title: JavaScript Quiz Question #2: A Set of Objects
published: true
description: Consider the following Set of objects spread into a new array. What gets logged?
tags: javascript, challenge, webdev, programming
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/gffod695zp2c6pr0k3ie.png
---

Consider the following `Set` of objects spread into a new array. What gets logged?

```javascript
const mySet = new Set([{ a: 1 }, { a: 1 }]);
const result = [...mySet];
console.log(result);
```

A) [{a: 1}, {a: 1}]
B) [{a: 1}]

Put your answer in the comments!
Advanced TypeScript Exercises - Answer 8
Tags: typescript, javascript
Published: 2020-04-22 21:26:57

--- series: Advanced TypeScript Exercises ---
The question was about creating indexed type assignable to string. For the full question please visit [Advanced TypeScript Exercises - Question 8](https://dev.to/macsikora/advanced-typescript-exercises-question-8-2la4)

### The Answer
```ts
const concatToField =
  <T extends Record<K, string>
  , K extends keyof T >(obj: T, key: K, payload: string): T => {
    const prop = obj[key];
    return { ...obj, [key]: prop.concat(payload) }; // works 👍
}
```
The key to the problem was `obj[key]` which is a type of `T[K]` so the whole problem comes to - how to ensure `T[K]` is always string. Trying to narrow the `K` type only for `string` values in `T` will not work, as `T` can have no string fields at all, so we can end by `never`(the bottom type).

The simplest solution is restricting `T` to be extending `Record<K, string>`, what does it mean - we say that our `T` needs to have key `K` being a `string`. Now if we put key which will be having different value than `string` there will be compilation error.

Full solution available in [the playground](https://www.typescriptlang.org/play/index.html?ssl=15&ssc=1&pln=1&pc=1#code/MYewdgzgLgBNCGUCmMC8MDeNxIFwwHJoAnASzAHMCAaGKAdxHwGYAWWqAC2KTzuICuKAL4BYAFATQkWNOCIAKiABipJABsAJmgkwYAHgUwkAD2RhNEGACUkoYpv0BpWiXIUAfLpi0nxs0gWVgDWSACeIABmMEYeABQgAEYAVvgKtKFh+C4wAA7wYeog8Jr4bpQAlGloHpjeetLQecQguWjYKQDamQC6ANz1MDxQAsRgmDAAdNNJybTd4T34uS25k3KIcfmFxZoVMMJ9MAD0xzCMxMFWgLwbgLI7EmLip3RI0BBS4E3ITehYkWpaADKUGI+AIyDMNBg-w0mgAcgIALb4ACMtBhQJBACYwRCoAQDgNxBsoEpVLC4t8oLQCBjNMDiFDwa98RUjs8IJwQAItDBEigQMEYNdADI7HzA8lJKgBmkpLJpdIRiKZVIIbJOZ053N5-OMxBaxGFgEW98WSskyuXQGlgEBQACiJlI0Hc5K0KpZavZmq5PO0uqQ+pAhuuJuJ4DN0opVIVMoZWPd0E9GrgPp1AqFookEiAA)


**This series will continue**. If you want to know about new exciting questions from advanced TypeScript please follow me on [dev.to](https://dev.to/macsikora) and [twitter](https://twitter.com/macsikora).
JetGreen Integrating Twilio
Tags: twiliohackathon
Published: 2020-04-22 21:20:12

## What I built
#### Category Submission: Engaging Engagements


## Demo Link
https://safe-scrubland-93990.herokuapp.com/flights
(Username: jack // Password: password) 

## Link to Code
https://github.com/Jackmt9/jetgreen

## How I built it (what's the stack? did I run into issues or discover something new along the way?)
Using Ruby on Rails, I explored full CRUD implementations of an application that allows a airline gate agent to manage flights and cancel them. Upon cancelation, all the passengers are notified via SMS text using the Twilio API. I learned about form validations and the amazing features of Twilio.

## Additional Resources/Info
Flight cancelations won't work on your end- Twilio keys need to be updated with the your own unique keys.
Front-end Reading in Depth Week 17 [2020-04-21] 
Tags: alpinejs, angular8, serverles, vue
Published: 2020-04-22 21:15:33

1. Create Common Http Error Interceptor into Angular8
2. Deploy an Angular application on AWS using serverless
3. Introduction to Jest Snapshot Testing in Vue.js
4. Getting started with Alpine.js

https://annacoding.com/news/5mUGr8mOFrS1ttCtbVVQQ5/Front-end-Reading-in-Depth-Week-17?time=2020-04-22
Front-end Reading in Depth Week 17 [2020-04-21] 
Tags: alpinejs, angular8, serverles, vue
Published: 2020-04-22 21:11:39

1. Create Common Http Error Interceptor into Angular8
2. Deploy an Angular application on AWS using serverless
3. Introduction to Jest Snapshot Testing in Vue.js
4. Getting started with Alpine.js

https://annacoding.com/news/5mUGr8mOFrS1ttCtbVVQQ5/Front-end-Reading-in-Depth-Week-17?time=2020-04-22
What is Collab for Data Science?
Tags: datascience, qcobjects, tools
Published: 2020-04-22 20:47:01



QCObjects Collab for DataScience is an engine that helps the data scientists to automate data processing and collaborative analysis tasks. While a combination of other tools will help you to visualise your data in beautiful charts, Collab for DataScience is focused in analysis, allowing you to write calculus and math of complex scripts for different kind of analysis as well as descriptive, predictive, trend and clustering analysis, that are running server-less and in a shared always-alive context. You can run a script and go home or for a coffee until it ends the task, and your partner can run other micro-data bots in parallel that use the data that your still-running main bot-script is creating on runtime, even if it has not finished yet. 

If you use it in conjunction with QCObjects HTTP2 Built-In Server, you’re empowered to make your own data science APIs quick and easy 

In order to get feedback to complete the product documentation with the features that matters the most, It is still in beta testing stage and it is being distributed as a part of the QCObjects Community Edition for FREE! 

To install it, you can either use the docker image or use npm:


https://www.npmjs.com/package/qcobjects-collab

Demo of QCObjects Collab for Data Science 
https://youtu.be/7UnLXEdH1c0
Connecting Power BI to PostgreSQL on Azure
Published: 2020-04-22 20:21:45

If you want to connect your desktop Power BI to a SQL Server on Azure, it is a pretty simple couple of clicks. PostgreSQL takes a couple of additional options. 

1. On your Windows machine, click on Windows > ODBC Data Sources (32 Bit)
2. Click on the Drivers tab to make sure you have the PostgreSQL ODBC Driver
3. Click on the User DNS tab and Add a connection to the PostgreSQL ODBC Driver (I used the Unicode driver, but I am not sure if that is required)
4. In Power BI, click on Get Data (the top of the icon, not the drop down - if you click the drop down you need to select More...) 
5. Search for ODBC
6. You should see the Data Source Name you just created as an option. I don't think you need to specify Advanced Options, as the DNS has all of this information. 

You are now ready to pull data into Power BI from your Azure-hosted PostreSQL database (and this would probably work on platforms other than Azure as well, but I have not tested them out). 

Cheers. 

Matt
[Code] React Ionic Framework, User Authentication and Account Creation With Mobx & Firebase
Tags: ionic, javascript, firebase, mobiledev
Published: 2020-04-22 20:11:51

Simple app showing how to using the ionic components with react js while supporting CRUD actions against objects in Firebase Database.

This is old code written NOT using typescript for a more gentle introduction to utilizing reactjs with ionic framework.

It has been updated to all of the latest libraries

- IonTabs
- Tabs Detail Page
- IonDatePicker
- IonModal
- IonToast
- IonList
- Firebase Authentication
- Mobx State Management
- Firebase CRUD
- Firebase Create Account
- Capacitor Integration

{% github aaronksaunders/ionic-react-auth-firebase %}

### YouTube Video Series on React and Ionic

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3gm27l89jb905phzckfj.png)
https://www.youtube.com/playlist?list=PL2PY2-9rsgl3OHIMYb1AzVG5wADUxOmUW
Calling all tech + data talent
Tags: career
Published: 2020-04-22 20:06:34

Hi all,

We've launched an initiative called All Hands to help match tech & data talent with career-switches into the progressive movement, which has grown increasingly timely as political and advocacy campaigning has switched to digital-first in light of COVID-19. And we've newly expanded to work with data talent as well, based on demand we're seeing from our partners.

Please apply to All Hands to get matched with employers in the progressive movement: https://all-hands.us.

If this isn't the right fit for you, please share this in groups / networks you're a part of to help us fill this gap in 2020:

Calling all tech + data talent: in light of COVID-19, progressive campaigning & advocacy is going digital-first, and we need your help. Join *All Hands* to switch to a career in the progressive movement today. Apply here to join the talent pool >> https://all-hands.us

Thanks,
Sarah
My Digital Assistant(Mebot)
Tags: dialogflow, chatbot, digitalassistant
Published: 2020-04-22 20:04:56

Hey, there it's Mayank,
Here I am to introduce you with my Digital Assistant(MeBot).

Visit here: https://mayankg.me

This digital assistant which I usually called MeBOT is basically a digital replica of me, here this assistant knows everything about me and can have both personal and professional natural talks, it can chit-chat with anyone, have small talks in a very cool natural way.

Basically the reason and motive behind this project is I want to replicate myself in a digital format, where anyone can know about me, talk to me or have basic chit chat with me which I usually do in my daily routine. If I'm not available or busy somewhere and someone wants to talk to me or want to know something about me come talk to my Assistant


## **How I Powered IT:** 

The platform I used to build my assistant is using Dialogflow and handled my Server side using NodeJs and Elegant UI using the UiKit framework.

I trained my assistant in a way like a natural conversation with a human, I am still training it and doing improvements to feel like you are talking to me itself.

Please feel free to drop any comments or improvements you think.

If you want to contact me, visit here: https://mayankg.me
Variables in JS
Tags: beginners, javascript
Published: 2020-04-22 19:58:43

JavaScript a wonderful programming that has a few unique twists to it. That especially is true when it comes to variables. There are 3 ways you can declare variable in JavaScript, using the keywords var, let, and const. Var is a variable declaration that is not recommended since var is usually hoisted in a function and yields unexpected result. Let, is the recommended alternative to var simply because the value is easily reassigned and reused through a program. In addition, is provides block level scoping that is valuable when you only need to make temporary variables with a specific context. Like let, const, is used under specific context. The main difference is that const doesn’t not allow for reassigning of name space saving. The important distinction to be made is that you are not allowed to reassign the value of const. 
There is another trick neat trick that JavaScript has that is truly tricking, hoisting. Hoisting is basically how JavaScript loaded. On of the first things that is done when a JavaScript file is loaded is to load all variable declarations behind the scenes. This is an important distinction because most other programing languages load the file from the top down. So, if you use a variable before it is declared the program will not compile correctly and will result is an error. Because JavaScript hoists variables if the variable is declared it does not matter when it is called. One caveat is that it only hoist declarations and not initialization. This is where a lot of confusion comes in. Many times, people expected to data to be hoisted along with the declarations, so time is wasted on a problem without knowing the origin. It is important to understand hoisting so that you may be able to trace errors to the proper origins when those type issues arise
for loops (python3)
Tags: python, codenewbie
Published: 2020-04-22 19:50:40


The for loop is commonly used to repeat some code a certain number of times. This is done by combining for loops with range objects.

#------------------------------
ex.

for i in range(5):
  print("hello!")




#------------------------------

* Now if you wanted to check if the amount of a specific letter within a string.

ex2.

name = 'HEEEELLLLLOO THHERREE'
count = 0
for letter in name:
    if letter == 'E':
        count = count + 1
print(count)

7

Note: there are easier ways to count letters within a word through built-in tools such as 'HEEEELLLLLOO THHERREE'.count(‘E’)


                                             FRANCNSTEIN © | Created 𝗐𝗂𝗍𝗁 ❤
What should aspiring data engineers learn?
Tags: datascience, database, discuss, jupyter
Published: 2020-04-22 19:33:53

Below is a mini data engineering crash course that I quickly put together and this list includes subjects that aspiring data engineers may want to become familiar with -- they include:

💿 R / RStudio : data.frame
💿 Spark or DataBricks or EMR : DataFrame / DataSet
💿 Python : Pandas
💿 Java: JPA / JPQL / Hibernate / HQL
💿 Data modeling
💿 Relational databases & SQL
💿 NOSQL / MapReduce / Hadoop
💿 MongoDB
💿 CSV files

What else would you include?
Create custom Laravel Helper Methods
Tags: php, laravel, webdev, tutorial
Published: 2020-04-22 19:32:44

Hi All, this is Adi, with another Laravel article. I wanted to take some time to explain what Laravel’s Helper methods are and how your can create your own ones. I was never a big fan of creating my own customer helper methods when I started with Laravel, but with time, I have started using them more often and these days there’s no Laravel project without customer helpers.

Let’s get started.


### What are Laravel Helpers
Laravel Helper methods are "plain old" PHP functions, that you can call from any part of your Laravel Application. You may have already used a lot of Laravel's built-in helper methods like `route()`, `url()`, `view()`, `dd()`, and a list of others. You do not have to require any PHP files or reference any `namespace` to use them, they are ***magically*** available in all parts of your application. I'll explain more about the magic part in just a moment.

Here are a few use cases for creating custom helper methods. To call other utility classes, if there's a generic logic that's used multiple times in your code you might want to extract it out into a helper. I extensively use helpers to make ***formatting*** easier in my Blade view, such as automatically adding a currency symbol before a number or to format a number in a certain digit grouping or set dates in your application to use the same format on display.

Now let's see how simple it is to create custom Helper methods.

### Creating Custom Helpers
It is as simple as creating a file somewhere in the `app` directory and inform `composer` to auto-load it when the application starts, simple is it not. I usually have all my helper functions in a single file called `Helpers.php` in the `app/Utils/` folder, this is where I store all my utility classes but you can create this file anywhere in the `app` directory you see fit. Then, you need to register this file in your `composer.json` file that's at the root of your project. For reference you can check out how the Laravel framework registers it's helpers [here](https://github.com/laravel/framework/blob/7.x/composer.json).

![composer config](https://imgur.com/fhfUW7p.png)
And that's it. Make sure to run this command `composer dump-autoload` and restart your application. This will make sure that the `Helper.php` is loaded when Laravel is started. Now let's define your first helper method in the `Helper.php` file.

![create customer helper](https://imgur.com/YybJZcY.png)
This `say_hi` method can now be accessed in any part of your application. It's a simple example but you can make it as complex as needed.


### Conclusion
I hope you found this article on Laravel helpful. Laravel Helpers are such a handy feature that saves a lot of time. Hope you see the reasons to create your custom ones.

Useful Resources:
https://laravel.com/docs/7.x/helpers
https://laravel.com/docs/7.x/facades#facades-vs-helper-functions


> Thank You
> That's all for now, this has been Adi.  
> If you are looking for a Freelance Web Developer you can [contact me](https://simplestweb.in/contact-me/?utm_campaign=laravel-helper-article)
I did it, you can too!!! 
Tags: codenewbie, beginners
Published: 2020-04-22 19:27:04

Today I just did my first presentation ever on Angular.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4udv1hzg3bz7seyihgdv.jpg)
I was tensed. My voice was shaking. I was sweating. But I went on. I didn't stop. 
Guess what guys, I made it to the end of my presentation and I got to cover all I had planned and even more. 
This so far is my greatest achievement this year.🎉🎉💃💃
Simple node debug logging
Tags: node, beginners, javascript
Published: 2020-04-22 18:51:55


While working on node.js programs, you often need to print some additional info on the screen to know what exactly is happening during the flow. In this article we will show you how you can improve your logging in a very simple way.

### Before

There are nodejs packages to help you (listed in the end of the article) to abstract some parts and give some flexibility when it comes to filtering, but if you don't need much, you can just do an if statement:

```js
if (process.env.DEBUG === 'true') {
  console.log("original filePath", filePath);
  console.log("extension", extension);
  console.log("mimeExtension", mimeExtension);
}
```

Those `console.log`s will only work if there is a system environment variable `DEBUG` set to `true`.

For example, on *nix systems you can set the environment variable while running a command:

```shell
$ DEBUG=true pos-cli assets
```

On Windows you should use [`set DEBUG=true`](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/set_1).

This will result in something like this:

<img src="https://uploads.prod01.oregon.platform-os.com/instances/1/assets/images/use-cases/nodejs-debug-logging/before.jpg" alt="Before screenshot" loading="lazy">

It is doing what it's supposed to do, but we can do better with less code.

### After

```js
if (process.env.DEBUG === 'true') {
  console.log('Original data', {
    filePath,
    extension,
    mimeExtension
  });
}
```

1. We use `Original data` as the title for this object, which will help us identify what we are logging.
2. In an object we use the shortcut version of `key: value` when both are the same by writing only `key`. 
3. In modern shells object values are colored (zsh on the screenshot).
4. Logged object is formatted by nodejs, with indentations, further improving readability.
5. If the object would fit in one line, nodejs would not break line and keep it compact. 

### Result

<img src="https://uploads.prod01.oregon.platform-os.com/instances/1/assets/images/use-cases/nodejs-debug-logging/after.jpg" alt="After screenshot" loading="lazy">

### Other resources

There are some pretty nice alternatives if you want more power or visual clarity in your logging / debugging:

* https://www.npmjs.com/package/debug
* https://www.npmjs.com/package/log
* https://www.npmjs.com/package/loglevel
* https://www.npmjs.com/package/pretty-error