teleren/devto huggingface dataset:
Flow-State with Centered
Tags: centeredapp, productivity
Published: 2023-04-10 16:27:09

---
title: Flow-State with Centered
published: true
date: 2023-03-31 17:00:00 UTC
tags: #centeredapp #productivity
canonical_url: https://conormeagher.com/posts/2023/03/sync-obsidian-with-icloud/
---

[https://twitter.com/centered\_app/status/1643240753441947648](https://twitter.com/centered_app/status/1643240753441947648)

Working in a world where your attention span is prime real-estate for push notifications from social media, email, text messages, and instant messaging apps, you need a way to block it all out and stay on task. Ok, let me use the macOS "Focus" setting for notifications. Ahhh, here we go, no more distractions, and time to get work done.

It's 30 minutes later, and I've spent the whole time doing a deep dive on [The Best of Chris Farley via YouTube](https://www.youtube.com/watch?v=Ydpli6HztQo&list=PL5_4AmnEn4uuDsU5YDajVQVFRIVJfPM80). It's like I need something to keep me on-task. A voice... a reminder... a coach.

"Ready to dive in? Let's get flowin'." - [Cassidy Williams](https://centered.app/g/freakin-nerds?from=p3y2qZFuzmV0vhUUkRLRJP8yExC2)

Thank you, Cassidy. My colleague and friend, but also my coach, who recommended [Centered.app](https://centered.app) to me to solve this very problem that we face when working on a computer all day. If I do well, there are encouraging messages to keep me going. If I get off-track and start checking Twitter or email, I get ~~yelled at~~ , I mean, nudged to come back to my task. That's the core of what I need it to do for me, but it can do so much more. Here are some of the many features:

- A coach of your choice to encourage you
- Pomodoro technique for time management
- An integrated todo list
- A variety of music choices
- Muted notifications
- Nudges when you get distracted
- Breathing exercises
- A leaderboard

![Dashboard of Centered App on macOS](https://res.cloudinary.com/conrmahr/image/upload/q_auto,f_auto,w_400/conormeagher.com/macos-centered-app.webp)
_Dashboard of Centered App on macOS_

I don't shill for much but why not give it a try? [Join me today and get a 14-day free trial of Centered PRO!](https://centered.app/g/freakin-nerds?from=p3y2qZFuzmV0vhUUkRLRJP8yExC2)
Programación Orientada a Objetos C# l Clases (Gatitos Incluidos)
Tags: programacionorientadaobjets, poo, beginners, codenewbie
Published: 2023-03-31 16:59:29

**Clases** : 
Una clase es una plantilla o modelo para crear objetos. En una clase se define el comportamiento y las propiedades que tendrán los objetos que se creen a partir de ella.

**Ejemplo con gatitos**: 
Imagina que los gatos son clases en un programa de software.

Cada tipo de gato (por ejemplo, siamés, persa, siameses de pelo largo) representa una clase diferente, y cada gato individual de una raza representa un objeto o instancia de esa clase.
Todos los gatos tienen patas, oídos y un hocico. Estas características compartidas podrían ser consideradas las propiedades de una clase.

Mi gato que es un siamés rojo y es muy gritón, pues así se comparta su raza y esa podría ser una propiedad de la clase "Siamés Rojo".

**Ejemplo en código de la clase Siamés** :

```
public class GatoSiamés
{
    public string Nombre { get; set; }
    public int Edad { get; set; }
    public string ColorDePelo { get; set; }
    public bool EsHembra { get; set; }
    public string Raza { get; set; }

    public GatoSiamés(string nombre, int edad, string colorDePelo, bool esHembra, string raza)
    {
        Nombre = nombre;
        Edad = edad;
        ColorDePelo = colorDePelo;
        EsHembra = esHembra;
        Raza = raza;
    }

    public void Maullar()
    {
        Console.WriteLine("¡Miau!");
    }

    public void Comer(string comida)
    {
        Console.WriteLine("{0} está comiendo {1}", Nombre, comida);
    }

    public void Dormir()
    {
        Console.WriteLine("{0} está durmiendo", Nombre);
    }

    public void Jugar()
    {
        Console.WriteLine("{0} está jugando", Nombre);
    }
}

```


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

**nota** : _no te preocupes si aun no entiendes del todo, en las siguientes articulos se clarificaran tus dudas_
"10 Tips for Writing Clean and Efficient Code"
Published: 2023-03-31 16:09:21

As developers, writing clean and efficient code is essential to creating software that runs smoothly and is easy to maintain. Here are 10 tips to help you improve your coding skills and produce better code:

Use meaningful names for variables, functions, and classes.
Write code that is easy to read and understand.
Use comments sparingly but effectively to explain complex code.
Avoid using global variables as much as possible.
Keep functions short and focused on a single task.
Use built-in functions and libraries whenever possible to reduce code bloat.
Test your code thoroughly to catch and fix errors early on.
Use version control to keep track of changes to your code over time.
Refactor your code regularly to improve its structure and performance.
Learn from other developers and stay up-to-date with new technologies and best practices.
By following these tips, you can write code that is both clean and efficient, making it easier for yourself and others to maintain and improve your software over time. Happy coding!
O que é gRPC?
Tags: braziliandevs, programming, node, go
Published: 2023-03-31 16:57:57

Eae gente bonita, beleza?

Dessa vez eu resolvi trazer um pouco sobre **gRPC**, ou melhor dizendo **Google Remote Procedure Call**. É um tópico que ando lendo e acho importante saber o que significa e para que serve. Então vou deixar uma luz aqui para vocês e se curtirem eu posso trazer mais sobre, blz?

<img src="https://media.giphy.com/media/tIeCLkB8geYtW/giphy.gif" alt="Beleza" />


## O que é?

De uma forma simples ele é usado para fazer comunicações entre sistemas. No caso ele substituiria o nosso amado REST, sendo útil para comunicação entre APIs. 

## Da onde veio?

O **gRPC** é um framework desenvolvido pelo Google que surgiu para facilitar a comunicação entre sistemas fazendo algo que seja leve, rápido e não fique preso a linguagem alguma.

## Onde usar?

* Microsserviços: O **gRPC** é muito bom para ser usado em microsserviços, pois em ambientes em que a necessidade de comunicação entre sistemas é constante ele acaba se saindo muito bem.

* Mobile, Browsers e Backend: Você pode usar o **gRPC** em vários tipos de aplicações como browsers, mobile e backend porém é sempre importante entender a necessidade de cada situação. Além do mais é bem incomum de ver browsers fazendo esse tipo de chamada.

* Streaming bidrecional com HTTP/2: O **gRPC** usa o protocolo HTTP2 para poder trafegar dados em binários e ter uma conexão bidirecional. Explificando; uma conexão bidirecional é quando fazemos uma requisição e a conexão entre os sistemas ficam abertas assim você pode mandar e receber dados a hora que precisar, diferente do HTTP 1.1 onde você faz uma requisição, recebe uma resposta e a conexão é encerrada. 

## O que é RPC?
A sigla RPC significa Remote Procedure Call. De uma forma bem simples, o seu client chama um serviço diretamente no servidor. Bem simples né? É basicamente chamar o serviço de outro sistema.

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


## Protocol Buffers

Bom como dito anteriormente o **gRPC** usa o HTTP2 para se comunicar e trafegar dados e para isso ele utiliza o protocolo chamado Protocol Buffers. O Protocol Buffers também é um projeto da Google. E o objetivo dele é ser como o XML, porém, mais rápido, menor e mais simples. A grande sacada do Protocol Buffers é, antes de você enviar os dados são convertidos em binários, tornando a mensagem mais leve e quando você também recebe eles são convertidos para Protocol Buffers novamente, então isso torna a comunicação mais rápida e leve.


----

Em breve eu trarei exemplos de como usar e mostrar na prática o uso do gRPC, por enquanto a ideia é só mostrar e tirar dúvidas para quem queira conhecer.

Caso queira saber mais recomendo muito o [artigo do Lucas Santos](https://blog.lsantos.dev/guia-grpc-1/) sobre gRPC.

Se chegou até aqui, me segue la nas [redes vizinhas.]  (https://bento.me/cmsdev)
<img src="https://media.giphy.com/media/uWlpPGquhGZNFzY90z/giphy.gif" />
A platform to showcase/sell Notion Templates [NotionTemplatesHQ]
Tags: notion, notiontemplates, notionproductivy, templates
Published: 2023-03-31 16:56:00

---
title: A platform to showcase/sell Notion Templates [NotionTemplatesHQ] 
published: true
description: Your One-Stop Shop for Showcasing and Selling the Best Notion Templates
tags: #notion #notiontemplates #NotionProductivy #templates
# cover_image: ![Template](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11t40som7on9di25pkd5.png)
# Use a ratio of 100:42 for best results.
# published_at: 2023-03-31 16:50 +0000
---
![Template](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11t40som7on9di25pkd5.png)
Launched a new Platform NotionTemplatesHQ. A place to showcase and sell notion templates. Our application is completely free to use. We believe in making our templates accessible to as many users as possible.

Try out the application and share your notion templates and gain followers/downloads/income

Live link: https://notiontemplatehq.softr.app

You can follow us on Twitter for more updates [@NotionTempsHQ](https://twitter.com/NotionTempsHQ)
Understanding Static Site Generation, Server-side and Client-side Rendering without Jargon.
Published: 2023-03-31 16:36:22

I am writing this article based on what I think would have helped me understand SSG, SSR and CSR better while I was trying to learn them.

There are 3 other terms you need to understand for you to grasp the concepts of SSG, SSR and CSR. These terms are:

1. **Rendering:** This is the process of converting your JSX code into an equivalent HTML representation. Rendering can take place on the client (the user's computer) or the server(the computer that runs your code on the backend). Please note that when rendering happens on the server, it is called Pre-rendering.

2. **Build time:** This is the period of preparing your application code for production. In plain words, it's the process that takes place when you run npm run build to build a React.js or Next.js app for production.

3. **Request time or Runtime:** This is the period when your application code runs on the server in response to the request of a user. For instance, when a user sends a request to visit your website or clicks on a submit button.

Now let's delve into the three elephants.

1. **Client Side Rendering:** When a user sent a request for your web app, the HTML shell similar to the code below with all the necessary javascript codes to render your web pages and make them interactive will be sent from the server(the computer that runs your code on the backend) to the client (the user's computer). These javascript codes will then render the needed page right there on the client (the user's computer). Therefore, client-side rendering is the process of rendering your app on the client (the user's computer).

```
<!DOCTYPE html>
<html lang="en">
  <head>
      <!-- some header tags here -->
    <title>React App</title>
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
      </body>
</html>
```
2. **Server-Side Rendering:** This occurs when your app renders on the server(the computer that runs your code on the backend) at request time or runtime, the rendered app will then be sent to the client(the user's computer). This simply means that the HTML file will be populated with the required HTML and sent to the client(the user's computer) alongside the necessary javascript code to make the page interactive.

3. **Static Site Generation:** This is similar to SSR in the sense that the rendered app will be served from the server(the computer that runs your code on the backend), however, SSG is only generated once during build time.

I have made these explanations to be as short as possible, you can read them further [here](https://nextjs.org/learn/foundations/how-nextjs-works/rendering)
This Week In Python
Tags: python, discuss, thisweekinpython
Published: 2023-03-31 16:33:24


**Fri, March 31, 2023**


This Week in Python is a concise reading list about what happened in the past week in the Python universe. 

**I have received some good suggestions for this week's content. Thank you.**

**Did I miss anything from the Python universe this week? What did you read or tried out?**


## Python Articles



- [Making Python 100x faster with less than 100 lines of Rust](https://ohadravid.github.io/posts/2023-03-rusty-python/)
- [19 Sweet Python Syntax Sugar for Improving Your Coding Experience](https://medium.com/techtofreedom/19-sweet-python-syntax-sugar-for-improving-your-coding-experience-37c4118fc6b1)
- [Python Packages: a Primer for Data People](https://dagster.io/blog/python-packages-primer-1)
- [Ban 1+N in Django](https://suor.github.io/blog/2023/03/26/ban-1-plus-n-in-django/)
- [MIT Turbocharges Python’s Notoriously Slow Compiler](https://spectrum.ieee.org/python-compiler)




## Projects



- [django-cte](https://github.com/dimagi/django-cte) – Common Table Expressions (CTE) for Django
- [django-llm](https://github.com/mikrl/django-llm) – A reusable django app for large language model workflows
- [nanobind](https://github.com/wjakob/nanobind) – tiny and efficient C++/Python bindings
- [repid](https://github.com/aleksul/repid) – simple to use, fast to run and extensible to adopt job scheduler
- [workedon](https://github.com/viseshrp/workedon) – Work logging from the comfort of your shell



**Did I miss anything from the Python universe this week? What did you read or tried out?**
TIL 03/31/23
Published: 2023-03-31 16:30:24

Almost done with week 5 of my program!
Today I built a QR code with ruby.
I was surprised to see how easy it was, and that it did not take many lines of code.
I watched another youtube video to help explain what each lines does a little better.
Sometimes the repetition helps set things in.

Today I will be working with APIs and building a program that tells you the weather of your desired location.
Parsing user input to separate commands and arguments
Tags: programming, computerscience, codenewbie, webdev
Published: 2023-03-31 16:16:41

Here's an example code in C language for parsing user input to separate commands and arguments:

#include <stdio.h>
#include <string.h>

#define MAX_ARGS 10

int main() {
    char input[100];
    char *token;
    char *args[MAX_ARGS];
    int arg_count = 0;

    while(1) {
        arg_count = 0;

        printf("Enter a command: ");
        fgets(input, 100, stdin);

        // Tokenize input string by whitespace
        token = strtok(input, " \n");

        // Parse arguments and store in args array
        while(token != NULL && arg_count < MAX_ARGS) {
            args[arg_count++] = token;
            token = strtok(NULL, " \n");
        }

        // Check for empty input
        if(arg_count == 0) {
            continue;
        }

        // Print command and arguments
        printf("Command: %s\n", args[0]);
        printf("Arguments: ");
        for(int i=1; i<arg_count; i++) {
            printf("%s ", args[i]);
        }
        printf("\n");
    }

    return 0;
}

In this code, we first declare a character array input with a size of 100, which we will use to store the user's input. We also declare a character pointer token to represent each individual token in the input string, and an array of character pointers args to store the parsed arguments. We also set a constant MAX_ARGS to limit the number of arguments.

Within the loop, we use the printf function to display the prompt "Enter a command: " to the user. We then use the fgets function to read the user's input from the standard input stream stdin and store it in the input array.

We then use the strtok function to tokenize the input string by whitespace and newline characters. The strtok function takes two arguments: the string to tokenize and a string containing the delimiters to use. In this case, we use whitespace and newline characters as delimiters.

We then loop through each token and store it in the args array, incrementing the arg_count variable to keep track of the number of arguments. We also use a check to ensure that we don't exceed the maximum number of arguments.

After parsing the arguments, we check for empty input and continue to the next iteration of the loop if no arguments were entered. Otherwise, we print the command and arguments using the printf function.
Get Things Done – Lessons From Yahoo, Google, Netflix And Meta
Tags: business, webdev, agile, entrepreneurship
Published: 2023-04-06 22:09:01

---
title: Get Things Done – Lessons From Yahoo, Google, Netflix And Meta
published: true
date: 2023-03-31 16:09:00 UTC
tags: Business,webdev,agile,entrepreneurship
canonical_url: https://greenido.wordpress.com/2023/03/31/how-to-get-things-done-lessons-from-yahoo-google-netflix-and-meta/
---

Google, Meta, and Netflix are part of a small elite group of innovative and successful tech companies of our time. They have made a name for themselves in business and technology. All these companies are pioneering new technologies, products, and services. 

## Google

Google’s search engine is a household name synonymous with finding information online. The mission is to “organize the world’s information and make it universally accessible and useful.” They are doing a fabulous job on that. However, the future is still determined by Google’s Bard and the competition with OpenAI and Microsoft.

## Meta

Formerly known as Facebook, Meta is a social media giant connecting billions worldwide. Meta has not only revolutionized the way we communicate and interact with each other, but it has also changed how businesses and brands reach out to their target audience.

Meta’s acquisition of Oculus has given the company an edge in the virtual reality space, and the prospects of the Metaverse are still in the ‘dust’ – but it will be interesting if the future looks like “Ready Player 1”.

## Netflix

Netflix has disrupted the entertainment industry by offering a subscription-based streaming service and investing in original content. How will the competition with HBO and Disney shape the future? That’s a good question.

But what can we learn from them? 

In the following slides, I focused on essential aspects.   
If I missed something, please let me know.

In the following slides, I focused on essential aspects. It is part of a talk I gave last week.  
If I missed something, please let me know.

<object data="https://greenido.files.wordpress.com/2023/03/how-to-get-things-done-3-2023-1.pdf" type="application/pdf" style="width:100%;height:530px" aria-label="Embed of how-to-get-things-done-3-2023-1."></object>[how-to-get-things-done-3-2023-1](https://greenido.files.wordpress.com/2023/03/how-to-get-things-done-3-2023-1.pdf)[Download](https://greenido.files.wordpress.com/2023/03/how-to-get-things-done-3-2023-1.pdf)

Or you can [browse the slides on Slideshare](https://www.slideshare.net/greenido/how-to-get-things-done-lessons-from-yahoo-google-netflix-and-meta)

> “Innovation distinguishes between a leader and a follower.”
> 
> <cite>Steve Jobs</cite>
Reading user input and displaying a prompt code in c language
Tags: typescript, career, codenewbie, programming
Published: 2023-03-31 16:03:51

Here's an example code in C language for reading user input and displaying a prompt:
#include <stdio.h>

int main() {
    char input[100];

    while(1) {
        printf("Enter a command: ");
        fgets(input, 100, stdin);

        printf("You entered: %s", input);
    }

    return 0;
}

In this code, we first declare a character array input with a size of 100, which we will use to store the user's input. We then use a while loop to continuously prompt the user for input and display the input back to the user.

Within the loop, we use the printf function to display the prompt "Enter a command: " to the user. We then use the fgets function to read the user's input from the standard input stream stdin and store it in the input array. The fgets function takes three arguments: the array to store the input, the maximum number of characters to read, and the input stream to read from.

Finally, we use the printf function again to display the input back to the user with the message "You entered: ". The loop will continue to run indefinitely until the program is terminated.

👉Note that this is a basic example and does not handle input validation or errors. In practice, it's important to validate user input to avoid buffer overflow or other security vulnerabilities.
What is shell 0x00 basic project?
Tags: webdev, beginners, tutorial, devops
Published: 2023-03-31 15:51:44

The "Shell 0x00" project, also known as the "Simple Shell" project, is a programming project commonly assigned in computer science courses and bootcamps that focuses on creating a simple Unix shell program in the C programming language.

A Unix shell is a command-line interface that allows users to interact with the operating system by executing commands and programs. The "Shell 0x00" project typically requires students to write a C program that can read input commands from the user, parse the input, and execute the corresponding programs or commands.

The "Shell 0x00" project is typically divided into several stages or milestones, each of which adds more functionality to the shell program. Some of the basic features that may be included in the initial stages of the project include:

- Reading user input and displaying a prompt
- Parsing user input to separate commands and arguments
- Executing basic commands such as "cd" and "exit"
- Handling errors and displaying error messages
- More advanced features, such as piping, redirection, and background processes, may be included in later stages of the project.

Overall, the "Shell 0x00" project is a valuable learning experience for students who want to improve their understanding of Unix systems and low-level programming concepts in C.
Checkout for more details on this topic in my next article 👍
INSERT INTO Statement
Published: 2023-03-22 03:03:42

A new table contains no data. You need to insert data to the table before using it. You can execute the INSERT INTO statement to insert data into the table. This statement can be used to insert a row of data or multiple rows of data at the same time.

Syntax


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

Specifies the name of the target table where data will be inserted.

Value range: an existing table name

column_name

Specifies the name of a column in the target table.

The column name can be qualified with a subcolumn name or an array subscript, if needed.
Each column not present in the column list will be filled with a default value, either its declared default value or NULL if there is none. Inserting data into only some columns of a composite type leaves the other columns NULL.
The target column names (specified by column_name) can be listed in any order. If no list of column names is given at all, the default is all the columns of the table in their declared order.
The target columns are the first N column names, if there are only N columns provided by the value clause.
The values provided by the value clause are associated with the corresponding columns from left to right in the table.
Value range: an existing column

expression

Specifies an expression or a value to assign to the corresponding column.

If single-quotation marks are inserted in a column, the single-quotation marks need to be used for escape.
If the expression for any column is not of the correct data type, automatic type conversion will be attempted. If the attempt fails, data insertion fails, and the system returns an error message.
DEFAULT

Specifies the default value of a column. The value is NULL if no specified default value has been assigned to it.

**Examples**

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