teleren/devto huggingface dataset:
Mosaic Image Augmentation for YOLO data
Tags: python, preprocessing, yolo
Published: 2021-04-01 08:25:08

I couldn't really find anything online to easily convert my **YOLO** ready dataset into **mosaic** images (*the nearest repository used a different format for the input annotations!*) so I decided to write my own functional piece of code to make it convenient. While **YOLOv4** onwards have an **inbuilt functionality** to load images in this format, some special cases like **continual learning** can require  initial **external augmentation** before passing it to the model.

The code allows you to easily convert a set of 4 separate images and their corresponding annotations into a single mosaic and it also scales the bounding boxes accordingly. A sample mosaic from the Pascal VOC dataset would look like 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2sr5zh7t3ioj4jq9bllw.jpg)

You can find my code [here](https://github.com/arijitgupta42/YOLO-Mosaic) and I hope people find it useful. Cheers!
I finally created my personal blog
Tags: blog, general
Published: 2021-04-01 08:19:38

---
title: I finally created my personal blog
published: true
description: This looks like a goodbye to dev.to but it isn't
tags: blog, general
---

I finally created my personal blog.

I needed something more flexible than dev.to because it didn't feel right posting whatever I wanted here. And also I wanted something made by myself, something that I can change if I want.

So that I created [www.rossanodan.me](https://www.rossanodan.me/).

> Technical details: I used Gatsby to create it. It's been funny because it's very customisable if you know where to put your hands to the code.

It's still pretty empty, I know, but it won't be forever. I promised myself I will add content constantly.

This looks like a goodbye to dev.to but it isn't. I will continue use it, maybe more as reader than as a write but here I am.

Let me know what you think about my new blog. I'm open to suggestions!!
Facebook Page Like Button
Tags: facebook, 2articles1week
Published: 2023-04-23 11:24:01

---
title: Facebook Page Like Button
published: true
date: 2021-04-01 08:14:06 UTC
tags: Facebook,2Articles1Week
canonical_url: https://chrisdevcode.hashnode.dev/fb-page-like-btn
---

Do you have a Facebook Page and would love to promote it over your website or any site at all? A Like button is all you need. No technical procedures, just click and copy!

![Facebook like button](https://cdn.hashnode.com/res/hashnode/image/upload/v1617224774650/PbxPwT2yA.png)

![Facebook like button](https://cdn.hashnode.com/res/hashnode/image/upload/v1617224814999/tchzzb2BE.png)

Let's make one in few simple steps:

## Go to Facebook developer's site

[Facebook developer](https://developers.facebook.com/):

You will find all tools and stuff you could utilize provided by Facebook open source and APIs.

Go to the `docs` page: https://developers.facebook.com/docs/ and hover over the docs section on the navigation bar at the top, and select the `Like Button - Social plugin`:

![Screenshot from 2021-04-01 00-10-19.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1617225156329/iupgyxaLB.png)

[Like Button - Social Plugin](https://developers.facebook.com/docs/plugins/like-button)

## Customize your Page's button

While still on the current page, go to the section **_Get a Customized Like Button_**

![customizebtn.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1617263491900/tYeXyPxbi.png)

Paste the Facebook page URL you'd like to create the like button in the `URL to like` input.

Select the layout of the button, action type, and button size from the options listed.

## Action Type

![btnaction.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1617263962338/XV_GSjLRb.png)

## Button layout

![btnlayout.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1617263975723/f8K5DPj3I.png)

## Button Size

![btnsize.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1617263987032/_CcfZNNpF.png)

Once you are done with the selections, click on `Get the code`:

![getcode_ja.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1617264046891/s_z5-O_DH.png)

## Conclusion:

You can copy the code snippet into your website to start promoting your Facebook page:

Check out the example below:

[https://codepen.io/chrisachinga/pen/KKagVZr](https://codepen.io/chrisachinga/pen/KKagVZr)

Written with 💜 by Chris Achinga
Scottish Summit 2021 - A Web Developer's Journey to the Cloud
Tags: kubernetes, docker, container
Published: 2021-04-01 08:11:08

## Watch my Scottish Summit 2021 Recording 

As a web developer one not just build an application today but also make sure that the application is rightly deployed into the target platform. 

One of the ways in which the developer can make their application independent of core infrastructure is by targeting is to container based model. 

By doing so this can be deployed on-premises on in any cloud. With the Azure container offerings we will walk you through the steps to take to build asp.net core application, make it docker ready, then store it in Azure container registry to later push it to Azure container instances and finally deploy it to AKS as a public website. 

{% youtube 0Gp9oLI-BWk %}
カスタマイズなしでSitecoreの管理画面の色を変更する
Tags: css, sitecore
Published: 2021-04-01 07:48:08

「ローカル環境だと思ってアイテムを編集したら実は本番環境だった:scream:」みたいな経験、ありませんか？私はあります。何度かやらかしました。
本番環境にアクセスしていることが視覚的に分かれば、こんな事故は起きないはずです。
ということで、この記事では環境ごとにSitecoreの管理画面の色を変更する方法を紹介します。Sitecoreのカスタマイズは不要です。

こんな感じの画面になります。一目瞭然ですね。

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

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

## 変更方法
お察しの方もいらっしゃるかもしれませんが、Chromeの拡張機能であるStylusを使用します。Stylusを使用すると、特定のURLで任意のCSSを適用することができます。
まずはChromeにこの拡張機能をインストールしましょう。Firefox, Operaでも使用することができます。

- [Stylus - Chrome ウェブストア](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=ja)

インストールしたらStylusの管理画面を開き、左側のメニューから「新スタイルを作成」をクリックします。

スタイルの編集画面が表示されるので、まずは適当な名前をつけて保存してください。

次に左側のメニューの「インポート」をクリックします。テキストエリアが表示されるので、以下のCSSをコピペして「スタイルを上書き」を選択してください。

```css
@-moz-document url-prefix("http://foo.prod.sc"), domain("bar.prod.sc") {
.sc-globalHeader, .scRibbon .chunk, .scRibbonToolbarStrip {
    background-color: #3765bf;
}

.scRibbon {
    background-color: #1c3e7d;
}

.scRibbon .chunk, .scRibbonToolbarStrip,
.scRibbonNavigatorButtonsActive,
.scRibbonToolbar .scRibbonToolbarStrip {
    background-color: #6b94e1;
}

.sc-applicationContent-main {
    background-color: #c3ddff;
}
}

@-moz-document url-prefix("http://foo.prod.sc/sitecore/login"), domain("bar.prod.identityserver") {
body, .login-outer {
    background: none;
    background-color: #6998ff;
}

.login-page [for='Username']:before, #loginLbl:before {
    content: "【本番環境】 ";
}

.login-page [for='Password']:before, #passLabel:before {
    content: "【本番環境】 ";
}
}
```

以下のように2つのCSSが読み込まれます。上が管理画面のスタイル、下がログイン画面のスタイルです。

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

それぞれのスタイルの下部に「適用先」とあるので、上のスタイルに管理画面のURL（ドメイン）を指定して、下にスタイルにログイン画面のURL（ドメイン）を指定してください。

最後に保存すればおしまいです。実際にSitecoreにアクセスしてみてください。

Sitecoreのイメージカラーの補色っぽい色を設定していますが、もし色が気に入らなければ適当に変えてください。

それでは、Happy Sitecoring!
My Views Over LHD Share - Atul Anand
Tags: mlh, localhackday, lhdshare, atulwrites
Published: 2021-04-01 07:45:05

![img](https://pbs.twimg.com/media/ExklYXaXAAAMIPz.jpg)
# What is Local Hack Day?
Local Hack Day is a week-long hackathon that takes place annually. Local Hack Day is taking place for the last 8 years(except 2020). It is recognized all over the world. It comprises of daily and weekly events. The complexity of challenges varies and therefore, the candidate attending the event and can do the task according to their own knowledge.

# What is LHD: Share?
Local Hackday Share or LHD: Share is a 3rd part of the local hackday(LHD). Local Hack Day: Share is a week-long celebration of sharing everything you’ve learned as a hacker. If you’ve been hacking with us all year, we’re excited to have you back. If this is your very first event, we’ve got a ton of beginner-friendly challenges for you to complete that’ll have you shipping your hack like a pro in no time. You’ll have your pick of technical, design, and social challenges to complete - each with an emphasis on sharing your work. The more challenges you conquer, the more points you’ll earn. Tune in each day to check out the leaderboards and share what you’ve built.

# What are the Features of Local Hack Day?
- It’s compatible with a range of people.
- They have leaderboard updates every single day, to return the enthusiasm to everyone.
- It has guilds (group) formed from the whole community. And this guild helps every member of the guild to improve. The best and most famous is `#BLAHAJGang🍉🦈`.

# Why I Like to Attend LHD: Share?
I like to a part of Local Hackday due to these following reason:-
- I like the community it has.
- There is a lot of fun in doing that.
- Fun is a big part of local hackday.
- There is a very collaborative and encouraging environment.
- MLH always try to empower other hackers and give them lot of opportunities.
- It values fun and learning new things than being a competitive environment.
- They also value sleep.
<hr>
How to install Gstreamer 
Tags: gstreamer
Published: 2021-04-01 07:34:13

```bash
 sudo apt-get install python-gst-1.0 python3-gst-1.0
```

### dev-packages 까지 설치 해주자

```bash
sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev sudo apt-get install libfontconfig1-dev libfreetype6-dev libpng-dev sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev sudo apt-get install libgstreamer-plugins-base1.0-dev
```

### RTSP 서버로 돌릴려면 gir1.2-gst-rtsp-server-1.0 패키지도 설치 해주자

```bash
 apt-get install gir1.2-gst-rtsp-server-1.0
```
My experiences in the hacker community
Tags: community, hackathon
Published: 2021-04-01 06:12:45

Getting involved has been the most important thing I've done for my career. I want to say some reasons for that in this post.
My Story
I started to code in computer science from first year. My first community event was volunteering at a Tech-fest event(kolkata- MINI MAKERS FAIR) in my city. It was a great experience. Then, one month later I participated in different project competitions, poster competition, photography, and Lecture series. I started attending hackathons from 3rd year.
This year's LHD: Share is my first hackathon, which I am really enjoying. Joining #Eddiehub is the best thing. Collaboration first, code second this line is powerful. I was always curious to solve challenges and make things done. Things I have done in this LHD were quite brainstorming and interesting. I have learned a lot from my first Local Hack Day. To be honest I wasn’t expected that I will learn these many new things in a week. I shocked myself that I’m doing these many things. It was an amazing local hack day event for me. I would like to thank MLH for hosting these amazing events and my favorite guild EddieHub and guild members. After attending MLH I have learnt team and collaborate in projects makes you a better person and that help you to become a better coder, as you always learn something new from every hackathons.

The communities that I am a part of:

1. DSC,UEMK
2. OSA
3. SPIE
4. IETE.UEMK
5. EDDIEHUB
6. SPIE-OSA-UEMK student chapter- Secretary
7. Facebook Developer Circles, Kolkata
8. ACM
9. Hackclub
10. WomenTech Network-Global Volunteer.

how can you start getting involved? 
Here are some tips,
1. Answer Questions, #Discussion
2. Twitter
3. Blogging
4. Developer Circles
5. Chat Groups
6. Contribute to open source
7. Meetups
8. Conferences

Tech communities not only enable members to upscale their technology skills, but also provide them high visibility among IT recruiters – giving them a unique opportunity. Lastly, I love to be part of communities.
how to getting start deepstream on jetson( TX1, TX2, Nano, NX and AGX Xavier)
Tags: deepstream, nvidia, xavier, nano
Published: 2021-04-01 07:32:50

https://developer.nvidia.com/deepstream-getting-started
### Deepstream SDK install

1. deepstream_sdk_v5.0.1_jetson.tbz2 다운로드 해주자  

```bash
$  sudo tar -xvf deepstream_sdk_v5.0.1_jetson.tbz2 -C /
$ cd /opt/nvidia/deepstream/deepstream-5.0
$ sudo ./install.sh
$ sudo ldconfig
```

2. deepstream-5.0_5.0.1-1_arm64.deb 다운로드 해주자  

```bash
$ sudo apt-get install ./deepstream-5.0_5.0.1-1_arm64.deb
```

### Run deepstream-app

```bash
 $ deepstream-app -c <path_to_config_file>
```
My experience at MLH Local Hack Day: Share with BLAHAJgang MELONsquad
Tags: mlhgrad, localhackday, career
Published: 2021-04-01 07:04:39

## What is MLH LHD: Share & what do we do there:
At LHD: Share, we will have plenty of week-long and daily challenges to keep you busy. Week-long challenges will be accessible for the entire week, so you can hack on them whenever you have free time. Daily challenges are only available for 24 hours after they’re originally posted, so make sure you come back each day to see which challenges you’re going to conquer. 
‍
Challenges will range from social challenges urging you to connect with other members of the community, technical challenges that will expand your coding skills, and design challenges to refine your skills as a creator and artist. Some of these challenges will be completed live on our twitch stream, so you can follow along and complete it with the community. We cannot wait to see all that you learn, build, and share.

## How I joined LHD Share & the best Guild
I enjoyed & learned a lot at LHD Build and signed up for the <a href="https://localhackday.mlh.io/">Share edition</a> during the last day of LHD Build.
The last Local Hack day's experience was great. But this time I wanted to be a part of more active guild. So I joined <a href="https://blahajgang.lol/">BLAHAJgang</a> just after the Guild Joining system opened. I got so familiar with guildmates before the event started.There is squad within the guild called <a href="https://melon.blahajgang.lol/">MELONsquad</a>. Most of the details of us is up on this website.

## During LHD: Share
Everyone is helpful & funny(everyone just loves memes). We enjoy together & learn together, so it's not tough to earn points for our individuals and guilds.
Nuclei Is A Fast Tool For Configurable Targeted Scanning Based On Templates
Tags: security, hacking, bugbounty, pentest
Published: 2021-04-01 06:54:15

Nuclei is used to send requests across targets based on a template leading to zero false positives and providing fast scanning on large number of hosts. Nuclei offers scanning for a variety of protocols including TCP, DNS, HTTP, File, etc. With powerful and flexible templating, all kinds of security checks can be modelled with Nuclei.

[Nuclei](https://kali-linuxtr.net/nuclei-nuclei-is-a-fast-tool-for-configurable-targeted-scanning-based-on-templates)
Matt Brannelly | Nonprofit Startups Australia
Tags: nonprofit, charity
Published: 2021-04-01 06:51:13

According to Matthew Brannelly - strategic advisor from Australia, if you are planning to start a nonprofit or charitable organisation, then you need to consider some questions before you embark on your initial journey.
https://medium.com/matthew-brannelly-brisbane/start-nonprofit-australia-ab44a13e7be4
Hacking Experience as a Blahajgang member at LHD:Share
Published: 2021-04-01 06:38:31

# About MLH
"Major League Hacking (MLH) is the official student hackathon league. Each year, we power over 200 weekend-long invention competitions that inspire innovation, cultivate communities and teach computer science skills to more than 65,000 students around the world. MLH is an engaged and passionate maker community, consisting of the next generation of technology leaders and entrepreneurs." -MLH

#About LHD
"It is an MLHer’s responsibility to share their knowledge with the world and help everyone build amazing things"-MLH 
Thus MLH host Local Hack Day event with different themes such as Learn, Build and Share. Everyone is welcome to participate, even if you don't know how to code. Each day, there are different challenges for you to solve or complete to earn points.

#What do I learn from LHD?
There are **A LOT** of workshops which the MLHers will guide you through different topics that you may have or may have not learn before. You will get to learn how to write a simple code to write your own website! Or you will learn about Data Visualization, Machine Learning or more. I learned how to create my own data visualization and web scrapping applications (Discord bot). 

#What do I enjoy the most from LHD?
I recommend you should join a guild because they will help you to get through the challenges and you can also discuss/share your ideas with one another. I'm currently a member of Blahajgang and they are the best! Adam and Jack are really active and helpful to guide new members to go through different challenges. I love my guild so much because we are not alone, we collaborate with one another. We get to meet different people from around the world and share the laughter. Most important, we get to enjoy what we learn and build! The reason why I joined LHD:Share because I joined LHD:Build before. I was Eddie Hub's member and we did the same thing. We helped one another and had conversations. 

#Why you SHOULD join LHD?
YOU SHOULD BECAUSE MLH WELCOME EVERYONE, NO MATTER IF YOU HAVE NO CODING EXPERIENCE. IT IS WORTH TO JOIN BECAUSE YOU GET TO LEARN AND BUILD NEW THINGS. LHD IS A WAY FOR YOU TO IMPROVE YOURSELF.

#Conclusion
Join us. We're not a cult, we are *community* -Blahajgang
https://melon.blahajgang.lol
Useful Resources to Build a Kickass GitHub Readme Profile
Tags: beginners, programming, webdev
Published: 2021-04-01 06:38:11

As developers, we love visiting each others' GitHub profiles and browse through their repos and admire their portfolios. GitHub Profile readme is a great way to add some personality to your GitHub portfolio. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m0eywhhqvarnuaq1q714.gif) I recently added [my own](https://github.com/prnvbirajdar) and these are some useful resources that helped me get started:

### Getting started:

If you have never heard of GitHub profiles, [this article](https://towardsdatascience.com/build-a-stunning-readme-for-your-github-profile-9b80434fe5d7) and [this article](https://dev.to/aryclenio/how-to-create-a-readme-md-profile-on-github-2li2) gives a good introduction and setup instructions. 

There are some really good articles about setting up GitHub profiles available on DEV as well. [Braydon](https://dev.to/dailydotdev/creating-a-killer-github-profile-readme-part-1-33nm) has done a great job with his profile as well as these incredibly detailed articles.

### Readme examples:

If you are looking for some inspiration, Abhishek has curated some great readme profiles [here](https://github.com/abhisheknaiidu/awesome-github-profile-readme) and [here](https://awesomegithubprofile.tech/)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/33oxufh7rr9lqwvrgc7r.png)

### Styling resources:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xclyxr300brxchzwmqoc.png) This [repo](https://github.com/anuraghazra/github-readme-stats#themes) allows you to design your GitHub stats. There are tons of theme options available [here](https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4dsfw21szecer916ji0.png) [Shields](https://shields.io/) helped you design your social media logos, tech-stack, and social media badges. These add color and personality to your readme.

[Emojis](https://emojipedia.org/man/) is a useful website to quickly search and copy light-hearted emojis to add to your emojis.

It shouldn't take you more than a couple of hours to get it done. Try to keep it simple and uniform. Don't mix themes and use too many colors or gifs. Most importantly, make sure you add your personality to it!

Hope this was helpful. Happy coding!😊🚀💻
After the live coding about web app authorization
Tags: webdev, javascript, sideprojects
Published: 2021-04-01 06:30:14

As you may know, we recently organized a live coding event together with the LiveChat Developer Program team, where we taught web app authorization with our API. During the session, we also covered sending rich messages in the chat, as well as Accounts SDK. To get more details, [here's a link](https://dev.to/livechat/announcing-a-live-coding-session-livechat-web-app-authorization-31gf) where you can find the event announcement.

If you missed the live coding by any chance, we got you covered. Maybe you even enjoyed the session so much you wish to rewatch it? You can find a video recording of the whole event right below :point_down:

{% youtube FDmLqEiCH60 %}

If you like this video and want to participate in the future sessions we organize, join our [Discord server](https://discord.com/invite/rFbJkYQFwp) and be up to date with LiveChat Platform news. You can also let us know if there are any LiveChat API topics you’d want us to cover in the future! We are reachable via email at developers@livechat.com or on the Discord server.
Links
Published: 2021-04-01 06:08:34

https://www.digitalocean.com/community/tutorials/how-to-manage-state-in-react-with-redux

https://medium.com/crowdbotics/how-to-use-usereducer-in-react-hooks-for-performance-optimization-ecafca9e7bf5

https://grafikart.fr/tutoriels/react-hook-useReducer-1333

https://alligator.io/react/usereducer/

https://css-tricks.com/getting-to-know-the-usereducer-react-hook/


https://hackernoon.com/replacing-componentwillreceiveprops-with-getderivedstatefromprops-c3956f7ce607

https://itnext.io/react17-or-how-to-get-rid-of-componentwillreceiveprops-c91f9a6f6f03

https://stackoverflow.com/questions/29363671/can-i-make-dynamic-styles-in-react-native/47048417


https://stackoverflow.com/questions/32965688/comparing-two-arrays-of-objects-and-exclude-the-elements-who-match-values-into