teleren/devto huggingface dataset:
Understanding css Flex and Grid
Tags: css, webdev, beginners
Published: 2023-02-06 15:10:12

CSS Flexbox and Grid are two powerful tools for creating flexible and responsive layouts in web development. In this article, we'll take a closer look at each of these layout models, including code examples to help you get started.

## CSS Flexbox

CSS Flexbox is a one-dimensional layout model that allows you to control the direction, alignment, and size of elements within a container. It's ideal for creating flexible and responsive user interfaces, and is particularly useful for creating layouts with items that have different sizes and need to be aligned in a specific way.

Here's an example of how you might use CSS Flexbox to create a simple layout with items that are aligned vertically and spaced evenly:

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

In this example, we set the display property of the parent container to flex to enable Flexbox layout. The flex-direction property is set to column to align the items vertically. And finally, the align-items property is set to center to center the items within the container.

## CSS Grid

CSS Grid is a two-dimensional layout model that allows you to create complex grid-based layouts with rows and columns. It's ideal for creating flexible and responsive user interfaces, and is particularly useful for creating complex layouts with multiple items.

Here's an example of how you might use CSS Grid to create a simple layout with three rows and two columns:

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

In this example, we set the display property of the parent container to grid to enable Grid layout. The grid-template-columns property is set to 1fr 1fr to create two columns with equal widths. The grid-template-rows property is set to 100px 100px 100px to create three rows with the specified heights. The child elements are then positioned within the grid using the grid-column and grid-row properties.

In conclusion, CSS Flexbox and Grid are both powerful tools for creating flexible and responsive layouts in web development. Whether you're creating a simple layout with a few items, or a complex grid-based layout, these layout models
Starting My Coding Journey
Tags: webdev, beginners, 100daysofcode
Published: 2023-02-01 20:21:19

I have been finding the perfect opportunity to learn to code for a few weeks. First, however, like in some areas, you need to figure out where to start; there is so much information to read through, and to be honest, it was overwhelming. So let me take you through my thought process, and explain what I've done to find my path to embark on this journey.

Coding has many paths, so I had to figure out what I wanted to learn. Two exciting areas came up machine learning and web development. Despite having two options, I still need to boil down my two options and choose one. It took much work as machine learning and web development has many pros and cons. However, after a week of researching both options, web development is the option as there is a vast variety of paths embedded into web development.

I've decided to stick to Front-End Engineering. I have chosen this path because the design aspect intrigues me as I'm a visual person. I love designing to create an impact through colours, typography, and the layout of designs. Front-End development allows me to do this while still learning to code. Furthermore, the progression is impressive. I can expand to various roles within web development, which can lead to more career opportunities. Finally, it's challenging; it allows me to think about different approaches, analyse designs, and sharpen my problem-solving skills.

After choosing my path, I had to figure out what resources I would use for my learning journey. Again there are so many resources to learn Front-End development out there that it became overwhelming. After researching different platforms such as Codecademy, FreeCodeCamp, and Odin Project. I found a course at Udemy called "Build Responsive Real-World Websites with HTML and CSS" by Jonas Schmedtmann. (I will link the course below). The reviews and other developers who took the course suggested that this course would be a good starting point.

Now I can start, but before I do, I will explain how I will learn from this course. First, I will watch some videos in the course. Then, while watching the videos, I will write questions based on the content, and then after the video, I will have to answer the question. Using active recall, where instead of writing summaries and notes, you write questions and then answer the questions. I will then use CodePen.io to build small little applications to understand the basic concepts, and then I will build larger projects to practice what I've learnt.

Thank you for reading my first blog. I hope you enjoyed it. Let's start coding!!
PFSense
Tags: security, pfsens
Published: 2023-02-06 15:01:25

How to list blocked IPs and unblock IP?
```
$pfctl -t sshguard -T show
   1.0.246.105
   1.9.79.191
   1.52.149.133
   1.53.170.75
   1.164.252.130
   1.212.246.18
   1.217.60.210
   1.235.197.132
```

To unblock an IP, e.g. 1.235.197.132, run:
```
$pfctl -t sshguard -T delete 1.235.197.132
```
1/1 addresses deleted.

---
https://docs.netgate.com/pfsense/en/latest/firewall/easyrule.html
easyrule pass <interface> <protocol> <source address> <destination address> [destination port]
sorry but this is my first project
Published: 2023-02-06 14:54:51

FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\dell\AppData\Local\Pub\Cache\hosted\pub.dev\qr_code_scanner-1.0.1\android\build.gradle' line: 43 * What went wrong: A problem occurred evaluating project ':qr_code_scanner'. > Could not find method coreLibraryDesugaringEnabled() for arguments [true] on object of type com.android.build.gradle.internal.CompileOptions. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org
TIL: i made my own website from scratch; (with some instructions...shhh!)
Tags: html, css, beginners, devjournal
Published: 2023-02-06 14:53:46

most exciting thing i've ever done in the last 5-10 years? perhaps. i've always been into arts because it challenges me specially when i do not have any formal training in that said form of art... and that translates to everything, honestly. 

the last 2-3 years i have been longing to do something different outside of the realm of arts that challenges me to a different degree. i do like to learn and i'm always searching the internet for new ways to obtain information that can serve my needs and purpose. 

doing this web development apprenticeship feels like some sort of a miracle or an answer to a long long and forgotten prayer that i had given up on pursuing. sure, i could've learned these things on my own but at the end of the day some of us need a bit mentorship, sort of like when we learned how to ride a bike with the training wheels, just like that in my opinion. 

i'd like to say that html/css have been very easy to learn or understand but i'd like to give props to my trainer and the TAs for making it easy to understand, at the end of the day learning something new can be difficult for many even if for one it does not seem like so but there is more to learn, more to feel challenged by. after all, this was only the first week. (lol)
MES Domain
Tags: mes, timestream, osisoft, aspen
Published: 2023-02-06 14:41:36

In the modern world where we are using different types of programming languages like Python, Java, etc but still we don't know many things like without much coding we can get IT Jobs with good package.

**MES (Manufacturing Execution Systems)** domain is an example of such a domain. I am very fortunate to work with this domain from my starting of my career.

The limited number of associates working in this domain make it very easy for freshers to grow in this field. And if you have good programming knowledge the life will be much much easy.

The timeseries database is growing with time. Big companies has started using timeseries database for analysis and predicting future.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3clgvlv91j3aql01ry6i.png)

Amazon is one of the player in this game to provide the architecture to store data and analyze the data. Amazon Timestream is Fast, scalable, and serverless time-series database.

Other older players of this domain are OSISoft PI and Aspen IP.21.
As mostly many companies are using old applications. But the time is changing and we will see many new things in future.....
ONLYOFFICE Docs Developer Edition: version 7.3 released
Tags: update, news, onlyoffice, opensource
Published: 2023-02-06 14:35:37

The latest version of ONLYOFFICE Docs for developers is already available with lots of new features. 

## Form creator

![Roles in forms](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rlm89m1fr9d4m2j1be6d.png)

- Recipient roles for field filling (visual highlighting)
- New fields: Date&Time, ZIP code, credit card

## In all editors 

![SmartArt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oii4xi3ohd9rt6801kx4.png)

- Inserting SmartArt elements
- Rotation settings for 3D charts
- Presets for inserting horizontal/vertical text boxes
- Show/hide left and right panels in the View tab
- Dictionaries for Uzbek language (both Cyrillic and Latin)

## Document editor

![Password protection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbqew2wpnis1rjdlb7nv.png)

- Support for Unicode and LaTeX equations
- Password protection with limiting access rights
- Document statistics in the status bar

## Spreadsheet editor

![Watch Window](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vew8df2z97jwjulo1evl.png)

- Watch Window
- 13 new formulas including TEXTSPLIT, VSTACK, WRAPCOLS, etc.
- Data import from local XML files

## Presentation editor

![Paste Special](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/510bceg8ha3o1xdy3po0.png)

- Paste Special for inserting slides (destination theme, source formatting, picture)
- Quick access to guides/gridlines, Smart Guides settings 


You can explore the most important updates from version 7.3 in the [official blog](https://www.onlyoffice.com/blog/2023/01/onlyoffice-docs-7-3-released/) / [live event recording](https://youtu.be/0LpAWnJEEGE).

{% embed https://youtu.be/lJYyz9CiZfE %}

**Useful links**

[Full changelog on GitHub](https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md#730)

[ONLYOFFICE Docs for developers](https://www.onlyoffice.com/developer-edition.aspx)

[Get ONLYOFFICE Docs 7.3](https://www.onlyoffice.com/download-docs.aspx#docs-developer)
An easy way to copy + paste from the browser Console #shorts
Tags: console, developertools, tip
Published: 2023-02-06 14:33:13

---
title: An easy way to copy + paste from the browser Console #shorts
published: true
description: 
tags: console,developertools,tip
canonical_url: https://christianheilmann.com/2023/02/06/an-easy-way-to-copy-paste-from-the-browser-console-shorts/
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-02-06 14:31 +0000
---

Copying and pasting from Console is annoying but there is a better way. The Console variable `$_` contains the last result. You can use this with the `copy()` command to copy the data to the clipboard without having to highlight it.

{% youtube DQfNwjBSdxI %}
Understanding the JavaScript Event Loop
Tags: javascript, webdev, programming, beginners
Published: 2023-02-06 14:29:39

JavaScript is a single-threaded programming language, which means that it can only process one task at a time. However, with the help of the event loop, JavaScript is able to handle multiple tasks efficiently. In this post, we'll take a closer look at the JavaScript event loop and how it works.

## What is the JavaScript Event Loop?
The JavaScript event loop is a mechanism that allows JavaScript to execute multiple tasks asynchronously. It works by continuously checking the message queue for any pending tasks and executing them one by one. The event loop ensures that the main JavaScript thread is not blocked, allowing it to handle user inputs, animations, and other tasks smoothly.

## How does it work?
The event loop operates in a loop, continuously checking the message queue for any pending tasks. Whenever a task is added to the queue, the event loop picks it up and executes it. After the task is executed, the event loop goes back to checking the message queue for any other pending tasks.

The event loop operates on two main concepts: the stack and the heap. The stack is where the current function call is stored, and the heap is where the memory for objects and variables is stored. When a function is called, it's added to the top of the stack. The event loop only processes the functions in the stack when the stack is empty.

## Why is it important?
The JavaScript event loop is crucial to the smooth functioning of JavaScript applications. It allows the application to handle multiple tasks asynchronously, ensuring that the main JavaScript thread is not blocked. This results in a much better user experience, with the application being responsive and fast.

Additionally, the event loop also plays a crucial role in handling async operations such as HTTP requests, animations, and user inputs. By offloading these operations to the message queue, the event loop ensures that the main JavaScript thread is not blocked and can continue executing other tasks.

## Conclusion
The JavaScript event loop is a key component of the JavaScript programming language, enabling it to handle multiple tasks efficiently. By continuously checking the message queue for pending tasks, the event loop ensures that the main JavaScript thread is not blocked, resulting in a smooth and responsive application. Understanding how the event loop works is essential for developing efficient and high-performing JavaScript applications.
Telescope: How I set it up
Tags: opensource
Published: 2023-01-19 01:51:32

## Overview
This week my task was to setup the telescope running locally and tell to my classmates how it went, so here I am :) 

## Environment setup guide
As a good well-established project, [Telescope](https://github.com/Seneca-CDOT/telescope) provides a great [environment setup guide](https://github.com/Seneca-CDOT/telescope/blob/master/src/web/docusaurus/docs/getting-started/environment-setup.md#option-1-run-frontend-and-backend-microservices-locally), which covers most use cases.  

## How it went to me
Setting up Telescope locally was kinda a problem to me, since after I run all proper commands like:
- installing `pnpm` globally
- installing dependencies with it: `pnmp install` 
- run unit tests with `pnpm test`

I was having an issue with one dependency, so after several attempts to resolve it myself I reached the Telescope's community and [filed](https://github.com/Seneca-CDOT/telescope/issues/3787) an issue at the Telescope's github.

About 20 minutes after [one of the maintainers reached to me](https://github.com/Seneca-CDOT/telescope/issues/3787#issuecomment-1387533841) and recommended me a way to resolve my issue that helped. 

After that I was able to run the Telescope docker container with the following commands: 
- `pnpm services:start`
- `cp ./src/db/env.example .env`
- `pnpm db:init`
- Removing the parser container (I just did it from the Docker UI)
- Run `parser` with `pnpm services:start parser`

Everything seems to run fine now :) 

## What I learned 
The interesting seen that I have never seen before is [pnpm](https://pnpm.io/) It looks like it is an `npm` on steroids. As far as I see it does pretty much what `npm` does, but it just has some features that improve package installing speed like caching previously downloaded packages to some global local storage.
How to resolve "can't run linter goanalysis_metalinter" ?
Tags: go
Published: 2023-02-06 14:29:00

If you are using [Golangci-lint](https://golangci-lint.run/), you can find this kind of error. 
```
level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package cache: could not load export data: no export data
```
But how can we resolve it?

## Solution
In almost every case, this issue append when the project can't be build correctly. So execute the command `go build` to check if you haven't an error elsewhere.

In all cases where I've met this issue, I had a version conflict between two libraries, or a library which was loaded correctly.

## Other possibilities
When I had this issue for the first time, I saw a lot of people saying that they had this issue with specific versions of the linter.

So if you still have the error after doing a successful `go build`, check if you have the latest version of the tool.

---

### Links
- Golangci-lint - Documentation : https://golangci-lint.run/
- Golangci-lint - Github : https://github.com/golangci/golangci-lint

I hope it willl help you! 🍺

---

<center><h3>You want to support me?</h3></center>
<a href="https://www.buymeacoffee.com/mxguilbert7" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
Comment résoudre "can't run linter goanalysis_metalinter" ?
Tags: go
Published: 2023-02-06 14:28:00

Il se peut que vous pouvez rencontrer ce soucis si vous utiliser [Golangci-lint](https://golangci-lint.run/). 
```
level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package cache: could not load export data: no export data
```

Mais comment le résoudre?

## Solution
Dans la quasi majorité des cas, ce soucis arrive quand le projet ne peut pas être construit. Par conséquent, exécutez `go build` pour vous assurez que vous n'avez pas un autre problème.

En effet dans tous les cas où j'ai rencontré cette erreur, j'avais un conflit de version entre deux librairies lors du build, ou une librairie qui ne se chargeait pas correctement.

## Autres possibilités
De ce que j'ai pu voir sur internet quand j'ai rencontré pour la première fois ce soucis, pas mal de gens ont eu des soucis avec certaines versions du linter. Donc si même après que vous ayez vérifié le build de votre application vous avez toujours le soucis, vérifiez que vous avez bien la dernière version du linter.

---

### Liens
- Documentation Golangci-lint : https://golangci-lint.run/
- Golangci-lint - Github : https://github.com/golangci/golangci-lint

J'espère que ça vous aidera! 🍺

---

<center><h3>Vous voulez me supporter?</h3></center>
<a href="https://www.buymeacoffee.com/mxguilbert7" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
What are the biggest problems AI can solve in the future you're most interested in?
Tags: discuss, ai, watercooler
Published: 2023-02-06 14:24:20

---
title: What are the biggest problems AI can solve in the future you're most interested in?
published: true
description: 
tags: discuss, AI, watercooler
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dhbcpr384yfrtg2halz.png
# Use a ratio of 100:42 for best results.
---

From medical innovation, to writing the next great novel, to solving environmental issues, there's a lot of talk around the amazing things AI can do.  

**What are some use cases you'd like to see implemented?**
How to use AI in your engineering organization [webinar]
Tags: webdev, management, ai, webinar
Published: 2023-02-06 14:22:17

Artificial Intelligence has become a critical tool for organizations to enhance productivity, innovation, and competitiveness. In this webinar we will cover best ways to integrate AI into your team’s workflow.

We will cover:

- Identifying areas where AI can be applied in your organization
- Defining clear goals and objectives for your AI initiatives 
- Acquiring the right skills and resources to implement AI 
- Developing a data strategy to ensure access to quality data for AI models
- Addressing security and privacy concerns
- Implementing, monitoring, and evaluating AI initiatives
- Keeping up with AI advancements and continuous improvement

Don't miss your chance to hear from Tabnine CEO and Co-founder, an industry expert, and see real-world examples of how AI is revolutionizing engineering operations in organizations. Sign up now! (https://tabnine.zoom.us/webinar/register/WN_To01_Mp7RCCEmqIQN-pzKA

)
Git and Github tutorial part 3
Tags: beginners, webdev, git, programming
Published: 2023-02-06 14:18:01

We've talked about some important git commands in  the two previous posts. In this one we're going to talk about how to work with remote repositories. 

## git clone
Let's say you want to get a specific repository from github and put it on your computer into a specific folder. The command below will do exactly that.

```
git clone remote_location clone_name
```

- `remote_location` represents a location (github repository SSH or HTTPS). After cloning the repository your remote address will be given the name "origin". This "origin" is an easier way to refer to that address later on.

- `clone_name` is a name you want to give the folder you want your repository to be cloned in.

## git remote -v
This command lists the name of the remote and and its location.

## git fetch 
The command `git fetch` will fetch the changes from the remote repository into your local repository. 

## git merge origin/main 
This command merges origin/main into your local branch.
Laporan Kegiatan PPHB 2023 (JOB FAIR)
Published: 2023-02-06 13:59:42

**1) PT. Sinar Sosro**

Persyaratan:
- Minimal SMK
- Usta 19-25 tahun
Memiliki piston pision dibidang Penjualan
- Mampu mengoperasikan gadget 
- Berpenampilan menarik dan dapat bekerja dalam team
- Bersedia mengikuti proses Seleksi dan program pemagangan yg diadakan di PT Sinar Sosro

**2) PT Japan Indonesia Economic Senter**

Persyaratan peserta program pemagangan ke Jepang PT JIAEC:
1. a. kelas XII/XII SMK Negeri/ swasta lainnya
    b. Alumni SMK tahun 2022 dan 2021 
    c. Alumni SMK tahun 2020 dan 2019 dengan Pengalaman kerja minimal 1ahun
2. laki laki 
3. Usia Maksimal 23 tahun pda saat Seleksi
4. Tinggi badan minimal 160 cm dan Berat badan
5. Mata normal
6. Tidak buta warna
7. Sehat Jasmani dan Rohani

**3) Lpk Bakti kencana Jaya Mulya**
Program Im Japan 

Persyaratan: 
- Tinggi Badan :
laki-laki Min 160 cm
Perempuan 190 cm
- Pendidikan :
SMK/SMA Sederajat
- Usia Minimal 18 tahun maksimal 25 tahun 
- Tidak buta warna.

**4) PT karya Tama Mitra Sejati** 

Kelebihan Sektor formal:
- Status kerja resmi depnaker
- Dijamin bebas aniaya
- Perlindungan terjamin
- Bebas beribadah
- Tempat kerja nyaman, bersih, dan Ber AC
- Disediakan Mess Jaminan kesehatan dan monitoring langsung tiap bulan.

Syarat pendaftaran :
- Wanita/pria 18-30 thn
- Ijazah SLTP/SLTA Sederajat E-KTP
- Kartu keluarga kartu kuning 
- Akta kelahiran.

**5) PT fajar Anugrah Dinamika**

persyaratan:
- Pendidikan Minimal SMA/smk sederaja+
- Pengalaman kerja Minimal 2 tahun.
- Memiliki Sim 02 yg msih berlaku 
- Usia Max 90 tahun
- Bersedia mengikuti seluruh proses rekrutmen dan bersedia melakukan perjalanan dinas