teleren/devto huggingface dataset:
Flutter Starting Template
Tags: flutter, mobile, dart, community
Published: 2023-07-08 21:28:46

Exciting Flutter Template Available! Kickstart Your Projects with Ease! 🚀

I'm thrilled to share a comprehensive Flutter template that showcases best practices and empowers developers to jumpstart their Flutter projects effortlessly. 🎉

📝 Description: This template is packed with pre-built pages, seamless Provider integration, and robust HTTP handling. It encompasses the industry's best practices, allowing you to accelerate your development process and deliver high-quality Flutter apps efficiently. 💪

🌐 Whether you're a seasoned developer or just starting your Flutter journey, this template provides a solid foundation for your projects. It's designed to save you time and effort by offering reusable components and a well-structured codebase. ⏰

✨ Key Features:
- Pre-built pages: Get a head start with a collection of ready-to-use pages, reducing your development time.
- Provider integration: Leverage the power of Provider to manage state effortlessly and build scalable apps.
- HTTP handling: Streamline your API interactions with robust HTTP handling, ensuring smooth communication with your backend.

🤝 I invite you to explore this open-source project on GitHub and support its growth. Check out the project repository here: https://github.com/mehmet-karagoz/flutter-boilerplate 🚀

💡 Remember, open-source projects thrive with community involvement. Feel free to contribute, provide feedback, or suggest enhancements. Let's collaborate and create amazing Flutter experiences together! 🌟

#Flutter #OpenSource #Template #GitHub #DeveloperCommunity
Python development basics
Tags: python, beginners, programming, codenewbie
Published: 2023-07-08 21:21:51

**

> Introducing Python development basics series on Inioluwa oladipupo's blog on hashnode.
**

The Python Development Basics Series is a comprehensive guide designed to introduce beginners to the fundamentals of Python programming. Whether you're completely new to programming or coming from another language, this series will provide you with the essential knowledge and skills to start building your own Python applications. Each installment focuses on a specific topic, providing clear explanations, practical examples, and hands-on exercises to reinforce your learning.

For more info, message me or connect to
https:// inioluwaoladipupo.hashnode.dev
Java Loop Boolean Expressions
Tags: java, booleanalgebra
Published: 2023-10-12 02:40:48

---
title: Java Loop Boolean Expressions
published: true
date: 2023-07-08 20:46:14 UTC
tags: Java,BooleanAlgebra
canonical_url: https://crtv.dev/java-boolean-operators/
---

 ![Java Loop Boolean Expressions](https://images.unsplash.com/photo-1446038202205-1c96430dbdab?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8c2VhcmNofDJ8fGNvYXN0fGVufDB8fHx8MTY4ODgyODIzNnww&ixlib=rb-4.0.3&q=80&w=2000)

Boolean expressions are used to represent conditions required for all loops. It may not be obvious at first, but even "for" loops contain Boolean expressions used to evaluate if their conditions have been met.

Java separates the operators used to construct boolean expressions into two categories: Comparison Operators and Logical Operators.

### Comparison operators include:

- **==**  
Equal to operator used to determine equality.
- **!=**  
Not equal to operator used to determine inequality.
- **>**  
Greater than operator used to determine if the proceeding value is mathematically greater than the following value.
- **<**  
Less than operator used to determine if the proceeding value is mathematically less than the following value.
- **>=**  
Greater than or equal to combines the behavior of the greater than operator and equal to operator, allowing for values that are greater than or equal to another value.
- **<=**  
Less than or equal to combines the behavior of the less than operator and equal to operator, allowing for values that are less than or equal to another value.

### Logical operators include:

- **&&**  
Logical and returns true if both input statements or values are true.
- **||**  
Logical or returns true if at least one of the input statements or values is true.
- **!**  
Logical not, negates the following statement or value. Meaning if the following value is true, it will return false and vice versa.
Chat Room Project - Christopher Duran
Tags: node, react, javascript, nicaragua
Published: 2023-07-08 20:46:09

<div align="center">
  
  [<img src="https://i.ibb.co/f00RqX9/vimeooverlay.png" width="455px">](https://vimeo.com/843504865)
  
</div>

## Table of Contents
- [Introduction](#introduction)
- [Technologies](#technologies)
- [Project Setup](#project-setup)

## **Introduction:**

Building interactive and real-time web applications has revolutionized the way we communicate and collaborate online. One of the most popular technologies for achieving this interactivity is Socket.IO, a JavaScript library that enables bidirectional real-time communication between the server and the client. In this article, we will explore how to build a web chat project using Node.js, React, and Socket.IO. We'll discover the benefits of this technological combination and how they can be leveraged to create an engaging real-time chat experience.

## **Technologies:**

- Node.js is a server-side JavaScript runtime environment that allows us to build scalable and high-performance web applications. Its event-driven approach and ability to handle requests in parallel make it an excellent choice for real-time applications like chat.

- React is a JavaScript library for building interactive user interfaces. With its focus on building reusable components, React enables us to create dynamic and responsive UIs that efficiently update when data changes.

- Socket.IO is a JavaScript library that makes real-time communication between the server and the client easy. It utilizes WebSocket, a technology that allows for a persistent, bidirectional connection between the server and the client, enabling instant data transmission.

## **Project Setup:**
Before getting started with building the web chat, we need to set up our development environment. Make sure to have Node.js installed and create a new React project using Create React App. Then, install the necessary dependencies, including Socket.IO, for real-time communication.

In summary, creating a web chat project using Node.js, React, and Socket.IO has been an exciting experience. The opportunity to get the source code and the project idea on my webpages is available for those interested in acquiring it offer you a good and easy option if you need a chat feature. We invite you to be part and explore new technologies together!
[![Patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/chriisduran)

[![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/chriisduran)

[![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/chriisduran)
My Hover Effect
Tags: codepen, css, html
Published: 2023-07-08 20:43:41


      "Descrição de Efeitos de Estilo em CSS":
Este projeto é uma demonstração interativa de efeitos de estilo em CSS. Ele inclui um título centralizado com animação no hover. O plano de fundo é uma cor escura e o texto muda para branco ao passar o mouse. Além disso, o título tem um elemento pseudo `::before` com um gradiente de cores, que cria um efeito visual interessante. É uma forma divertida de aprender e explorar diferentes estilos CSS para adicionar interatividade e apelo visual aos elementos HTML. Aproveite e experimente!
Algorithms vs. Cake Mixes
Tags: algorithms, random
Published: 2023-10-12 02:38:22

---
title: Algorithms vs. Cake Mixes
published: true
date: 2023-07-08 20:29:46 UTC
tags: Algorithms,Random
canonical_url: https://crtv.dev/algorithms-vs-cake-mixes/
cover_image: https://images.unsplash.com/photo-1464349095431-e9a21285b5f3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8c2VhcmNofDEwfHxjYWtlfGVufDB8fHx8MTY4ODg0NzgzNXww&ixlib=rb-4.0.3&q=80&w=2000
---

Cooking is a great source of example algorithms and serves as a great stand-in for learning how to code.

One of my first programming instructors began the first day of class by asking for a volunteer. He then got the student to tell him how to make a peanut butter and jelly sandwich for lunch. He followed the instructions literally. As humans we tend to assume people will know to do certain things without being told. The issue arises when we try to program computers with the same assumptions.

Looking at a cake box, you'll probably find a few steps like this one. The first involves preparing the oven and pan, the second describes the process of mixing the ingredients, and the last instructs readers on how to confirm that the cake is made. The instructions are very linear, and keywords are highlighted in bold to help make it clear what needs to be done.

![Algorithms vs. Cake Mixes](https://king.instructure.com/users/11006/files/2531525/preview?verifier=Bc4SC7jpdXFIpAfv2RA4ofBHfCyw1NsxlkZPjz01)
_Betty Crocker Cake Box_

One interesting thought, though, is that recipes rarely include decision structures and are largely written as linear, step-by-step processes. Why do we assume that someone baking a cake will open the oven's door to insert the cake? The instructions don't say to. Most would say that's just common sense, but what is common sense? Knowing to infer conditions or to read between the lines is what defines intelligence or common sense. Your computer wouldn't know to open the oven's door if this recipe was literally translated to code controlling a robot, but (most) humans would.

As humans, we know to include decision structures within our processes (and recipes), but computers don't. As programmers, we are responsible for translating human processes into code without leaving out any functionality. Decision structures are something most people don't have to consider directly but are key to writing even simple programs and algorithms.
A brief overview on Heap Only Tuple and Index Only Scans
Tags: database, postgres, postgressql
Published: 2023-07-08 20:12:00

Here we are going to discuss two features of postgresSQL that are very useful in enhancing its performance i.e.

- Heap Only Tuple (HOT)

- Index Only Scan

## Heap Only Tuple
So basically in postgresSQL, when a row/tuple is updated, it is added as the new version. That tuple will have two versions the old one that is marked as deleted and the updated one that is marked as updated. But there is a problem in this case i.e. we have to manage two versions of a row.
 
To solve this problem, we use HOT. In Heap only tuple, we check the space on the page where old version tuple is located and if there is enough space, we create the updated version on the same page where old version is present.

## Index Only Scan
In psotgresSQL, when a database query needs the index and data of column, we have to go to the table to get that column. This process involves a lot of disk I/O and eventually this thing results in very slow execution of query.

To solve this problem, here comes the index only scans. To reduce that I/O cost, index-only scans directly use the index key without accessing the corresponding table page when all entries of the SELECT statement are included in the index key. But there is certain criteria to use index-only scans:

- The query must retrieve only those columns that are included in index.

- Index type must support index-only scans such as b-tree index.

## References
[https://www.interdb.jp/pg/pgsql07.html](url)
[https://www.postgresql.org/docs/current/indexes-index-only-scans.html](url)
The 29th Day of the 100 Days of Code challenge
Published: 2023-07-08 20:04:42

Today was a more easy weekend day. I have some summer break assignments from school so I got to working on the math one, I'll be dedicating some time to it over the week. For coding, I worked on the client's side for the transcription's configuration. Tomorrow or on Monday, I plan to release it on GitHub and write a post about it! However, I did exceed my OpenAI API quota and I'll need to find a way for another free trial for the demo.

I also doesn't know if the "Refine on Silence with Speaker Diarization" option works, as now it refines the transcriptions when a speaker change is detected, I also added the option to make it refine when a buffer of silence is detected.

It should though :D

That's it for today, shortest there was in my opinion, happy coding everyone!
Vantagens e desafios de empreender online
Published: 2023-07-08 20:02:43

Há muitas vantagens de empreender online, mas também há desafios significativos a serem considerados. Neste texto, exploramos as principais vantagens e desafios de empreender online.

A primeira grande vantagem de empreender online é o baixo custo de entrada. Comparado ao estabelecimento de uma loja física tradicional, criar uma presença online requer um investimento muito menor. Isso inclui investimentos em estoque, infraestrutura, marketing e recursos humanos.

Outra vantagem é a flexibilidade. Quando empreende online, é possível trabalhar de qualquer lugar, a qualquer hora. Os empreendedores podem estruturar o seu negócio digital para trabalhar em uma escala que funcione para eles. Isso muitas vezes significa trabalhar a partir de casa ou de um espaço de coworking, o que reduz os custos operacionais.

Além disso, o empreendedorismo online tem o potencial de alcançar um público muito amplo, especialmente em nível global. Isso significa que os negócios podem se expandir rapidamente e acessar mercados que não estariam disponíveis em uma loja física. É possível encontrar clientes e fornecedores em qualquer lugar do mundo, desde que eles tenham acesso à internet.

Outra vantagem importante é a possibilidade de coletar dados precisos e úteis sobre o comportamento do cliente. Os empreendedores digitais têm acesso a uma ampla gama de ferramentas que podem ajudá-los a monitorar, analisar e entender o comportamento do consumidor. Eles também podem usar esses dados para ajustar suas estratégias de marketing e melhorar seus produtos e serviços.

No entanto, a empreendedorismo online também enfrenta vários desafios. Um dos maiores é a concorrência. Já que pode ser fácil criar uma loja online, muitos negócios competem por atenção e vendas. Isso significa que os empreendedores digitais precisam ter uma estratégia convincente para alcançar seus clientes.

Leia também: [Formula Negocio Online funciona](https://soraya-utsumi.com/formula-negocio-online-funciona/)?
Select the best GUI toolkit – part 6: wxWidgets
Tags: gui, comparison, launcher
Published: 2023-07-08 19:59:01


![WxAppMenuLauncher](https://github.com/digfish/wxappmenulauncher/raw/main/screenshot.jpg)

In this sixth part, we\\'ll be abording wxWidgets (which was called wxWindows in the past). Originally intended for programming in C++, it knows several wrappers, like WxPython, which we'll be discussing here and several others, like wxNode, wxsqlite3, etc.
WxWidgets was developed to port graphical applications to several operating systems, and providing a looand feel as if it was a real native application, which is true, comparing it for example with Java Swing.
Having a dedicated design editor is also a great plus: [wxFormBuilder](https://github.com/wxFormBuilder/wxFormBuilder), developed independentely provide the developer with a way to develop the graphical interface first and later write the code for each case of event triggered by some window widget. The entire design is then serialized to a Python Class which must be subclassed when you implement its functionality.
It's easy, through drap and drop, to rearrange the layout of the widgets the help of the designer, all you have to do is then regenerate the code. WxFormBuilder uses `fbp` files to store the designer project definitions.
The event management in wxWidgets is done through the method `bind` in each widget. Usually in the constructor you "connect" each event identified by a constant in the `wx` module.
Drag and Drop is implemented by the `wx.DropTarget` class. You\\'ll have to implement several methods in this class.
On Windows most of the majority of the listview functionality with the icons were implemented in the `wx.ListCtrl` class. You have to fill two `wx.ImageList`s with the executables icons, one with the smaller size of 16 pixels and another with the bigger size of 32 pixels. Extracting the icons from the executables is built-in in the library.
On Linux and the Mac, since the icons are not embedded in the executable, you'll have to associate manually each icon with the application manually. The library does not come with this feature out of the box. This limitated the hability of the launcher to properly render the apps with the associated icons on Linux and the Mac.
So, this limitated the portability of the launcher in the different OSes. Anyway, the feature I enjoyed the most is the free designer and the native look and feel of the app in every OS. But in order to make it work properly in every platform, you'll have to tweak it for every OS.
The source code for this implementation is available at [GitHub](https://github.com/digfish/wxappmenulauncher).

*Article posted using [bloggu.io](https://bloggu.io). Try it for free.*
How to Create a Callback URL using Ngrok
Tags: beginners, tutorial, devops, webdev
Published: 2023-07-08 19:24:04

A while back I came across the need to create a callback URL while consuming Africa’s Talking USSD API. This was my first time coming across it and I didn’t know how to go about it.
I thought that I’d need to host the project first so I ignored it for a while.

Until I attended one of their sessions and they mentioned ngrok.

## Create an Ngrok Account
You’ll be led to this page after signup or login.


![Ngrok Setup](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9k22h81yttnled0deu01.png)

If you’re a windows user, follow the instructions. For macOS users you don’t need to follow the instructions because the download isn't a zip file as per their documentation but a Unix Executable file.

Just download and fire it up.


## Fire up Ngrok
After opening the downloaded unix file, open a new window on the terminaL, cd to the directory where you downloaded ngrok and run the following command:

`./ngrok http <specify the port you want to use>
`

I used port 3000 so my command was:

`./ngrok http 3000
`

It opens an ngrok session where you can copy your URL. Below is my expired URL.


![Ngrok Callback URL](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1d755k6thdm3cgxgs88k.png)

My call back URL is: https://1f9b-105-163-0-134.eu.ngrok.io

If you’re using Africa’s Talking API, create a channel and update the callback URL, save and start debugging. The details tab will let you know where your code is failing, though their error messages are pretty generic.


![Africa's Talking](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v484u6fd0fro1dcrqilx.png)

The disadvantage of using the free version of ngrok is that the URL expires after 2 hours thus you have to keep changing and updating it. Additionally, being on a free version means you have to keep that terminal open, else you lose the connection to ngrok.


_[This article first appeared on Medium](https://medium.com/blog-write-heal/how-to-create-a-callback-url-using-ngrok-9efd3061eba)._
Deploying Container instance in Microsoft Azure portal
Tags: containers, azure, cloudcomputing, webdev
Published: 2023-07-08 19:23:27

Hello and welcome to my blog where I will show you how you can deploy a container instance on Microsoft azure.

**What is meant by Azure Container instance (ACI)?**
 
An azure container is a standard package of software which helps you to package code, dependencies and configurations of a particular application. Containers help to split the monolithic applications into individual services which makes up the solution.


**Getting Started**
From the azure portal;


1. You should click on **"Create resource"**.
![create resource menu](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9dpppvblvvxqb2pe9cjz.png)

2. Here you select **"Containers"** and click on **"Container instance"** to create an instance.
![create container instance](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v65hl8zqkz8c5vuvsvzr.png)

3. Select Subscription; edit your resource group; container name and region of deployment.
![container details](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0yr6qmmrzn9jelo2otxn.png)

4. Click on **"Networking"**.
![Networking](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/shcgqin1mfhruh7irxp1.png)

5. Enter DNS label name and choose one of either **'Tenant or Subscription'**.
![dns](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/voz84i90bqcy810ovq6x.png)

6. Review and wait while it validates.
![review](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idpojtm101r5fl6oo0on.png)

7. Click on **'Create'**. Should in case you need the saved parameters for more container deployments you can select the option to download template for automation.
![create](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/um53lvuza34uen1nzx3k.png)


8. Wait for deployment completion.
![depcomplt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/585gu1xxllt0nnusohkt.png)

9. Once container deployment is completed click on **"Go to Resource"**.![gotores](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w7cb7ulh7e4o67zpkpi7.png)

10. Search for **'FDQN'** and copy to clipboard.
![fdqn](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iilhmjwwrgfgzpoqa2ed.png)


11. Paste the link image in your browser.
![Container welcome message](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j410fgafz78vhb4e1x96.png)

12. Refresh to check **'Network stats'**.
![refresh](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9a9hppech8bz5zb6yte6.png)