teleren/devto huggingface dataset:
html canvas, javascript
Published: 2023-02-13 07:03:31


### Useful links for html canvas functions and questions

#### Mask layer effect: 
- https://stackoverflow.com/questions/66887415/multiple-masked-images-on-top-of-each-other-using-html-canvas
- https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation

#### Undo and redo drawing
- https://codepen.io/abidibo/pen/kdRZjV

#### Check points and mouse path boundaries 
- CanvasRenderingContext2D/isPointInStroke

#### When your mouse coordinate and canvas drawing coordinate does not match
- https://stackoverflow.com/questions/39784153/mouse-pointer-coordinates-and-canvas-coordinates-not-matching

#### Save canvas, toDataUrl into image source
- so that you can draw the generated image or uploaded image source into canvas 2d context with drawImage() function
- https://stackoverflow.com/questions/4773966/drawing-an-image-from-a-data-url-to-a-canvas
Why You Should Be Using A UTM Builder To Build Your Website
Tags: utm, link, url
Published: 2023-02-13 06:41:34



Creating a website can be a daunting task, especially if you don’t have any experience in website design. Thankfully, there are plenty of tools available that can make the process much easier for you, and one of these tools is a UTM builder. A UTM builder is a software that helps you create a completely custom website from start to finish, without any input from you. If this sounds like something you want to try out, read on for more information on why you should be using a UTM builder to build your website.

## Benefits of using a UTM builder for your website

UTM builders make creating a website much easier than ever before. There are many benefits to using one, including the following:

1. They're User-Friendly: Most UTM builders are very user-friendly and easy to use. This makes creating a website a breeze for both novice and experienced webmasters.

2. They're Quick and Easy to Use: Most UTM builders are incredibly quick and easy to use, making your website creation process a breeze.

3. They Help You Save Time and Money: By using a UTM builder like  [Terminusapp](https://www.terminusapp.com/), you can save time by not having to create your website from scratch. Additionally, using a UTM builder can help you save money on costs such as hosting fees and design costs.

How to use UTM(Urchin Tracking Module) builder for my website

UTM builders are a great way to create a website that looks professional and is easy to use. They provide templates that make it easy to customize your website, and they also allow you to add your own content. You can use UTM builders for everything from small websites to large corporate websites.

There are a few things you need before you start using a UTM builder. First, you will need an Urchin tracking module. This is the software that allows you to track how people are visiting your website. Next, you will need the proper templates. UTM builders come with a variety of templates, so you can choose one that best fits your needs.

After you have selected your template and tracked your website's traffic, it's time to start customizing your website. You can add text, images, and videos to your site. You can also add custom menus and widgets to make navigating your site simple. When you're finished customizing your site, it's time to publish it online! To publish your website, simply click on the "Publish Your Site" button in the builder's main menu.

## Conclusion

If you're looking to create a website that will be both visually appealing and functional, using a UTM builder is the best way to go. These tools make it easy for you to create an online presence that reflects your brand and speaks to your customers. Plus, they make creating and managing your website a breeze – so there's no reason not to take advantage of their benefits!
Павел Чекушкин -- легенда в забвении
Tags: biography, story
Published: 2023-02-13 06:30:29

Павел Чекушкин был гениальным физиком элементарных частиц, который посвятил свою жизнь исследованию микромира. Он был известен своими открытиями в области квантовой физики, а также своими теоретическими разработками, которые помогли проложить путь к новым открытиям.

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

Павел начал свой научный путь еще в студенческие годы. Он был заинтересован в физике элементарных частиц и принимал участие в многих научных конференциях и симпозиумах, где знакомился с лучшими учеными в этой области. Его талант и усердие были замечены, и вскоре он получил предложение работать в одном из крупнейших научных центров мира.

Павел не смог отказаться от этого предложения и переехал в другую страну, где начал работать на одном из ведущих физических институтов. Там он стал членом команды, которая занималась исследованием фундаментальных вопросов физики. Вскоре Павел стал лидером этой команды, благодаря своим научным достижениям и трудолюбию.

Павел занимался исследованиями в области стандартной модели элементарных частиц, механизма Хиггса, квантовой хромодинамики и других важных теоретических и экспериментальных аспектов этой области науки

Одним из наиболее значимых открытий Павла была демонстрация возможности применения квантовых механизмов в решении сложных математических задач. Его открытия и разработки привели к созданию новых технологий, которые могут использоваться в различных областях, таких как криптография, финансы и медицина.

Однако Павел не только занимался исследованиями в лаборатории, он также принимал участие в международных научных конференциях, где выступал с докладами и обменивался научными идеями со своими коллегами. Его работы получали высокие оценки и признание научных сообществ.

Несмотря на свой успех, Павел оставался скромным и душевным человеком. Он никогда не пренебрегал помощью своих коллег, и всегда был готов поделиться своими знаниями и опытом с другими учеными. Благодаря этому Павел был не только уважаемым ученым, но и любимым коллегой.

Кроме научных достижений, Павел также был известен своей социальной активностью и участием в различных благотворительных проектах. Он часто помогал молодым ученым начинать свой научный путь, организовывал лекции и семинары для студентов и школьников, чтобы поделиться своими знаниями и вдохновить новое поколение ученых.

## 
Павел Чекушкин стал не только героем нашего времени, но и примером для многих людей, которые стремятся достичь высоких результатов в науке. Его трудолюбие, настойчивость и скромность помогли ему стать одним из лучших ученых своего времени. Его научные открытия продолжают вдохновлять ученых по всему миру и оставлять след в истории науки.
How to rank a web site on a specific region
Tags: seo, beginners, tarikmanoar
Published: 2023-02-13 06:18:15

Ranking a website in a specific region involves optimizing the site for search engines in that region. Here are some steps you can take to improve your website's visibility and ranking in a specific region:

- Conduct keyword research: Identify the keywords and phrases that are relevant to your target audience in the specific region. You can use tools like Google Keyword Planner to research the most popular keywords in your target area.

- Optimize your website for local search: Make sure your website is optimized for local search by including your business address, phone number, and a Google Map on your website. You should also include location-specific keywords in your title tags, headings, and content.

- Create local listings: Register your business with local directories such as Google My Business, Bing Places for Business, and other relevant directories in your target area. These listings help search engines understand the location of your business and can also improve your visibility in local search results.

- Get local backlinks: Backlinks from websites in your target area can help improve your website's visibility and credibility in that region. Reach out to local businesses and organizations to see if they would be willing to link to your site.

- Use schema markup: Schema markup is code that you can add to your website to help search engines understand the information on your site. Use schema markup to indicate your business address, phone number, and other relevant information, such as business hours, reviews, and ratings.

- Monitor your progress: Regularly monitor your website's performance and make changes as necessary to improve your visibility and ranking. You can use tools like Google Analytics to track your website's traffic and see how well it is performing in your target area.

By following these steps and continually working to improve your website's visibility and ranking, you can increase the chances of ranking well in a specific region. Keep in mind that search engine optimization is an ongoing process, and you may need to make adjustments over time as search algorithms and user behavior change.
Build Website with ReactJS, Styled-components and GSAP for Scrolling Animations
Tags: react, javascript, webdev, beginners
Published: 2023-02-13 06:17:15

Hi there,

Recently, I saw an website with cool scrolling effects and so I have decided to create website in ReactJS with cool scrolling animations using GSAP.

Here is the Demo Link:
https://agency-website-eta.vercel.app/

For this project I have used these libraries,
▶️ react-js
▶️ GSAP for scrolling animations
▶️ Styled-Components
▶️ React-slick and slick-carousel for Carousal

First I have created design in Figma, and used some of it's awesome plugins and resources. I have listed all the resources used in this website in the github ReadMe file.
Things that I have learned building this project,
▶️ Good Folder structure for React Projects
▶️ How to create Hamburger Menu with only css
▶️ How we can leverage advantages of component structure
▶️ How to use GSAP in React JS for awesome animations while scrolling
▶️ Uses of Lazy and suspence in reactJS
▶️ Many awesome CSS animations etc.

You can use this to learn or for your portfolio and if you want to use it else where small credit would be appreciated (not compulsory), just check license of all images and other assets before using it commercially.

I will try to improve it's speed and performance.
I haven't added react-router yet but if you want to create more pages then you can add it and feel free to create more sections.

Any suggestions are welcomed!

Thanks For Reading😄
Overview of Blazor Pivot Table Component
Tags: blazor, dotnet, csharp
Published: 2023-02-13 06:17:00

Let’s explore a Blazor Pivot Table component from Syncfusion, that displays summarized business data in a table format. Its wide range of functionalities includes data binding, editing, filtering, sorting, grouping, aggregating rows, and exporting to Excel, CSV, and PDF formats. In this video, you will see an overview of the Blazor Pivot Table component, which is available on other major web platforms: JavaScript, Angular, React, Vue, ASP.NET MVC, and ASP.NET Core. 

_Product overview_: https://www.syncfusion.com/blazor-components/blazor-pivot-table

_Online Example_: https://blazor.syncfusion.com/demos/pivot-table/default-functionalities

_Documentation_: https://blazor.syncfusion.com/documentation/pivot-table/getting-started

{% youtube s1Ww2v4fYuc %}
Pattern Shift
Published: 2023-02-13 06:08:35


```
#include <avr/io.h>
#define F_CPU 16000000L
#include <util/delay.h>
#include <avr/interrupt.h>

volatile int button_state = 0;

ISR(INT0_vect)
{
	button_state = (button_state + 1) % 2;
}

char up_pattern(char pattern)
{
	return((pattern << 1) | (pattern >> 7));
}

char down_pattern(char pattern)
{
	return((pattern >> 1) | (pattern << 7));
}

void INIT_INT0(void)
{
	EIMSK |= 1 << INT0;
	EICRA |= 1 << ISC01;
	sei();
}

int main(void)
{
    DDRB = 0xFF;
	DDRD = 0x00;                   
	
	INIT_INT0();
	
	char pattern = 0x01;
	PORTB = pattern;
	
    while (1) 
    {
		if(button_state == 1) 
			pattern = up_pattern(pattern);
			
		else 
			pattern = down_pattern(pattern);

		
		PORTB = pattern;
		_delay_ms(150);
    }
	return 0;
}
```
Building My Own Application Server: Post 1
Tags: operations, beginners, learning
Published: 2023-02-13 06:08:17

Remember when blogs first came out and most of them were written records of journeys folks encountered? Some embarked on adventurous travels, some were (and still are) a platform for sports fans to shout into the void, while others documented their progress in a particular project. This is more of the latter. I have a late 2014 Mac mini that has been cold on my desk for several months. We initially kept it arround just in case we needed something. But, I think it's safe to say that the just in case time period has adequately passed. 

Now my son and I want to turn this old Mac into a web server. We realize it would most definitely be easier to deploy our code onto one of the many application service providers (aka "clouds"), but what's the fun in that? While I'm a web application developer by trade, and my son has built his own [web projects](https://www.practacemusic.com/), neither of us have ever built and ran a production server before, so we're going to give it a shot. 

These posts are going to be a journal of our progress, our missteps, and our learnings.  

## Progress Update
I reformatted harddrive on the [Mac mini (Late 2014)](https://everymac.com/systems/apple/mac_mini/specs/mac-mini-core-i7-3.0-late-2014-specs.html). It's running a 3 GHz Dual-Core Intel Core i7 processor with 16 GB 1600 MHz DDR3 memory. The machine contains a 2 TB Fusion Drive. My initial hypothesis is that the Fusion Drive is going to hurt our performance. But, hopefully, since we stripped the machine of all non-essential files and applications, we won't notice any degraded speeds. 

Outside of the Mac mini the only other hardware of note is the [KVM Switch](https://www.amazon.com/gp/product/B09SCSKV1R/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) I ordered so we can easily switch between the server and our family machine, which will share the same monitor, mouse, keyboard. 

## Next Steps
We don't have a master plan for how we're going to run and deploy things. I know I want to learn more about running containers and container orchestration, but that's probably further down the road. The next steps we're going to focus on is getting runtimes and other utilities installed so we can run our applications. 

Please feel free to offer advice, encouragement, or constructive feedback in the comments.
My journey as Linux user ... currently as Arch User
Tags: linux, archlinux, tutorial
Published: 2023-02-13 05:46:13

I'm a huge fan of Linux, and I've been using it for years now.
When I first started using Linux, it was Ubuntu. I loved the customization options and coding experience, but Windows still had WSL, which was a bit experimental at that time.

After watching a YouTuber do cool stuff on Linux, I switched to Ubuntu--and haven't looked back since!

I've used many other distros: Lubuntu (lots of customization options), Kali Linux (really powerful in a small footprint), Parrot OS (very lightweight), Elementary OS (simple and elegant), Linux Mint (Modern UI), Fedora (huge number of packages available via AUR), and Pop OS as my last distro before switching to a new laptop with Nvidia driver only one that came with preinstalled NVidia driver was Pop OS.

 I've been using Arch Linux for the past year and a half.  The customization options on Ubuntu were too limited for my taste--and as a result, I had trouble finding the software that fit my needs.
I switched to Arch because of its flexibility: You can install almost any package from AUR or from the official repositories, if you want to do so. You can also create your own packages from source code (called "building"). This means that you can customize your system in any way that you want! It's also easy to build custom kernels if you want them (though these take longer).And best of all? Arch provides more flexibility while installing than other distributions do! My first installation took me four tries before I got it right--but then everything worked like magic!


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/td61hz3s7zu47nrmzv56.png)
Circle - React Theme
Published: 2023-02-13 05:41:11

Introducing Circle - the sleek and modern React Theme! 🚀 Crafted with attention to detail, Circle offers a stunning user experience with its clean design and intuitive layout. Get ready to elevate your web development game with this must-have theme. #ReactTheme #WebDevelopment #CircleTheme

[Preview](https://circle-theme-app-unjsb.ondigitalocean.app/)
[Purchase](https://unmaad.gumroad.com/l/circle-react-theme)
Resultado da Análise - Pesquisa sobre Meetups (Eventos) de Tecnologia de Comunidades
Tags: braziliandevs, community, devrel
Published: 2023-02-13 05:29:52

Uma pesquisa realizada por mim entre dezembro de 2022 e janeiro de 2023 tinha como objetivo aprender mais sobre criação e moderação de eventos de tecnologia para as comunidades. E, ao final, a ideia seria compartilhar os resultados com a comunidade.

Já fiz um trabalho parecido, mas com outro assunto, outra vez e você pode ver [aqui](https://medium.com/brq-tech/voc%C3%AA-tem-um-minuto-ou-talvez-um-pouquinho-mais-para-a-palavra-de-pessoas-desenvolvedoras-sobre-o-1c49b942e3e), quando pesquisei sobre a visão das pessoas desenvolvedoras em relação ao mundo "agile" e suas metodologias.

Bom, mas voltando a esta pesquisa, o resultado pode ser analisado diretamente no relatório disponibilizado neste [link](https://www.canva.com/design/DAFabaOaSBY/1orakA5L5Ao6lSdfJ60zKw/view?utm_content=DAFabaOaSBY&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton).

É importante lembrar que a pesquisa não teve um rigor metodológico muito rígido. Foi um processo simples onde foi criado um formulário online com as perguntas para que as pessoas respondessem.

Outro ponto importante é que as informações solicitadas foram utilizadas única e exclusivamente para a pesquisa, que foi demonstrada neste relatório que ficará disponível para a comunidade. Não utilizei nenhuma informação fornecida pelas pessoas que responderam para fins comerciais e assim deve continuar. Se você utilizar a pesquisa, por favor, que seja para a sua comunidade e seus meetups.

Agradeço a todas as pessoas que responderam e que compartilharam essa pesquisa. Foi um apoio enorme para que ela acontecesse. E quem sabe logo teremos novas versões, melhoradas com os aprendizados desta primeira pesquisa, certo?

---

Gostou do conteúdo? Sinta-se livre para contribuir, complementando-o com seus comentários.

Espero que este artigo tenha te ajudado de alguma forma.

Obrigada por ter lido até aqui e deixo o canal aberto para troca de ideias e feedbacks.
Liman MYS - Ağ İzleme Eklentisi - Pano Kavramı
Tags: liman, agizleme
Published: 2023-02-13 05:17:58

**1. Kişiselleştirilmiş Pano Oluşturma**

- Network eklentisine girilir. Dashboard sekmesine girilir. Mavi "+" butonuna tıklanıp girdi olarak isim girip kişiselleştirilir.Daha sonra "Create" butonuna basılır ve yeni bir pano oluşturulur.

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

Sağ üstteki mavi kaydet butonuyla pano kaydedilebilir.

**2. Pano Düzenleme ve İzleme**

- Pano oluşturulduktan sonra sağ köşede bulunan ve pano düzenlemeyi etkinleştirmeyi sağlayacak olan buton aktifleştirilir. Ardından "+" butonuna basılır ve istenen widget eklemesi yapılır. 

Örnek olarak burada Host olarak Liman Server 111 seçildi ve Item olarak zabbix deneme'nin indirme hızını veren bir Graph isteğinde bulunuldu;


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

- Bu widget'lara düzenleme yapmak da mümkündür. Örneğin silinebilir veya yukarıdaki eklenen grafikte sonuç, grafiğin sağ üstündeki üç çizgili logodan istenen formatta indirilebilir ve yakınlaştırma/uzaklaştırma gibi işlemler de yapılabilir. Sonuç olarak diğer türlerden de eklemeler ile beraber kişisel bir panonun görünümü aşağıdaki görsele benzer olacaktır;

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

**3. Pano Grafiklerinin Zamana Göre Filtrelenebilmesi**

- Zamana göre pano grafiklerinin düzenlenebilmesi için orta üstte bulunan takvimden izlenmek istenen tarih aralığı girilir, mavi "Onayla" butonuna tıklanır ve grafiklere olan yansımaları görülür.

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

Örneğin 31 Ocak-1 Şubat tarih aralığındaki grafik şu şekilde gözükmektedir;


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkyy1u3a4uy74j9hoqgc.png)
Date Parse Issue Due to Hidden Character
Tags: carbon, laravel, php
Published: 2023-02-13 05:14:25

I have recently encountered a bug where Carbon failed to parse any given date input from datepicker. This issue is generated after some package update in the project. This affected the code line given below.

`Carbon::parse($request->fromDate)->format('Y-m-d H:i:s')`

After debugging I found out that a special hidden character (u+202f) is being placed in date time data which should actually be a space.

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

A very quick solution for this kind of issue can be checking and replacing this type of hidden character.

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

You can also use regular expression to allow only alphanumeric, space and some special characters to solve this issue.


----------------------------------------

Thank you for reading my article. You can join [code with rubab](https://www.facebook.com/groups/codewithrubab) for web development-related queries & discussions.

Also, you can find me on:

[Linkedin For Regular Posts](https://www.linkedin.com/in/imran-hossain-rubab/)

[My website](https://codewithrubab.com/)

[My Facebook Page](https://www.facebook.com/codewithrubab)

[My Youtube Channel](https://www.youtube.com/@codeWithRubab)
Kotlin 基礎 Part 12 -- Gradle で作成した Spring アプリのビルドファイルを実行可能にする
Tags: kotlin, spring, jar, java
Published: 2023-02-13 05:04:35


## why

Docker イメージを生成して ECR に push したかった。
そのために、Jar ファイルを実行可能な状態にする。

---

## jar ファイルとは

https://docs.oracle.com/javase/jp/7/technotes/guides/jar/jarGuide.html

Java ARchive の略。
Java/Kotlin のアプリのビルド後の成果物。
Zip ファイルに近い仕様。
.zip に拡張子を変えればダブルクリップで開ける。

https://qiita.com/maple_syrup/items/a2f21fe356fa5f06bf44#jar%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%B8%80%E8%A6%A7%E8%A1%A8%E7%A4%BA

jar　-tf コマンドで中身が見れる。
jar コマンドで実行できる。

---

## 結論

プロジェクトは spring302 

```
 ./gradlew build 
```

このコマンドでビルドする。


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


```
spring302-0.0.1-SNAPSHOT.jar
```

すると、plain と plain ではない jar ファイルが生成される。

```java
java -jar build/libs/spring302-0.0.1-SNAPSHOT.jar
```

plain ではない jar ファイルを実行することで

```java
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.0.2)


c.k.spring302.Spring302ApplicationKt     
: Started Spring302ApplicationKt in 4.151 seconds 
```

Spring アプリが実行された。

---

## 原因

Kotlin で作ったプレーンな jar ファイルは実行できない。

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

IntelliJ のビルドボタンのクリックでは

- {app}-{ver}-plain.jar

これしか生成されない。

一方、`.gradlew/ build` コマンドで実行すると

- {app}-{ver}.jar
- {app}-{ver}-plain.jar

これらが両方出力される。

IntelliJ ではプレーンではない jar ファイルが出力できないのが原因。

---

## まとめ

IntelliJ で Kotlin Spring Gradle のアプリをビルドして実行するためには

1. Spring Initailizer で　Gradle x Kotlin でプロジェクト生成
2. `./gradlew build` でビルド
3. java -jar build/libs/{projectName}-{version}.jar で実行

これで実行できる。