teleren/devto huggingface dataset:
avalancheseqlogger
Tags: subdotnet, avalanche, blockchain
Published: 2022-10-06 09:05:07

---
title: avalancheseqlogger
published: true
description: AvalancheGo - Seq logging sink
tags: 'subdotnet,avalanche,blockchain'
cover_image: 'https://raw.githubusercontent.com/boulix3/devblog/main/posts/assets/subdotnet-header-small.png'
---

# avalancheseqlogger

When you work on custom subnets using avalanche-network-runner, you probably have logs all over the place.
You can have all your logs in one place using centralized logging solutions.

This is a tutorial of how to use [Seq](https://datalust.co/).

In this screenshot, you can see the logs from 4 nodes and 2 processes (avalancheGo and SubDotNetVm). You can filter the logs, expand lines to see the structured logs, and there is also a "tail" like mode.

_Centralized logging using Seq_
![seq-running](https://raw.githubusercontent.com/boulix3/devblog/main/posts/assets/seq-running.png)


I made very minimal modifications to avalanchego (4 lines of code in log/factory.go).

# How to run 
1) You need to run seq locally.

It's very easy to run seq in your local dev environment using docker.
```shell
docker run \
  --name seqtmp \
  -d \
  -e ACCEPT_EULA=Y \
  -v /tmp/seq:/data \
  -p 18080:80 \
  -p 5341:5341 \
  datalust/seq
```
or if you use podman
```shell
podman run \
  --name seqtmp \
  -d \
  -e ACCEPT_EULA=Y \
  -v /tmp/seq:/data:Z \
  -p 18080:80 \
  -p 5341:5341 \
  datalust/seq
```

2) Clone and build this modified version of [avalanchego](https://github.com/subdotnet/avalanchego)

In this exemple, we will clone it in `/tmp` but you can choose any folder you like.
```shell
cd /tmp
git clone https://github.com/subdotnet/avalanchego
cd avalanchego
./scripts/build.sh
```
The compiled binary path is `/tmp/avalanchego/build/avalanchego`.

3) Install and run avalanche-network-runner

Install using these [instructions](https://github.com/ava-labs/avalanche-network-runner#installation)
You will need two terminals for this : 
Start avalanche-network-runner in one terminal 
```shell
avalanche-network-runner server
```

Start the nodes in another terminal
```shell
avalanche-network-runner control start \
--log-level info \
--number-of-nodes=4 \
--avalanchego-path /tmp/avalanchego/build/avalanchego
```

4) Watch the logs 

Open this url http://localhost:18080/ in your browser
CI/CD Github Actions For Deta.sh
Tags: webdev, cloud, cicd, deployment
Published: 2022-10-06 09:02:35

If you don’t know about deta.sh you can find out more about deta.sh on my blog

Once you deploy your app on deta.sh. Open deta.sh and click on settings and create a new access token


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



Once you create a new token go to your repository and click on settings


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



In settings you can see secrets where you what to add your app secrets, an secrets can be any env credentials.


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



Add DETA_TOKEN and its value which you got from deta.sh access token


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



Once you add your secrets. Click on Actions of your github repo and click on set up a workflow yourself


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



Once you create main.yml file in your repository replace the github actions code with below code.

{% embed https://gist.github.com/Geeks-Vegeta/cd6f7d3f80eb69fc1f62ab74f6e80402 %}

Now you will able to see all your deployments in github it’s self.
Low/No Code platform for better training and deployment of CV models
Published: 2022-10-06 08:58:39

Synergylabs has fast become a dynamic and fast-moving company in Client Solution Management using emerging in Technology in India and has proven itself to be one of the market leaders in INDUSTRY 4.0, FINTECH AND ARTIFICIAL INTELLIGENCE.


Established in 2017 by Ex top Goldman Sachs,IBM executives, we have helped several marquee customers in leveraging technology and achieve cutting edge over the competitors such as Indian Oil, Euro Car Parks, Flipkart, Navyug Cycles to name a few.

We strive to provide you with the best solutions to your business system needs. As our client, we place great emphasis and focus on your problems and goals and develop solutions that best fits your needs. We offer strong and effective solutions to your business with an enduring impact. We think of ourselves as your long-term partner.

We are building a low code/no code platform to train and ship computer vision models quickly with plug and play tools to connect to your favorite annotation platform. To get an early access and free inference credits kindly visit
 
shipflo.ai
Jetpack compose: Cool Button Click Effects
Tags: programming, kotlin, android, java
Published: 2022-10-06 08:56:16


In any mobile app you use, there are ways to give the user feedback when they interact with the app. 

For example, when the user touches the Toggle button, it’ll change its state in response to the interaction. This interaction gives a feel to the user.

In this blog, you will learn click effects to make your button click attractive.

By default, the button displays a ripple effect when it is touched. You can customize ripple color, alpha, etc.. according to your requirements. But we won't focus on those things. Yes, but we’ll learn a few ways to disable default ripple effects.

Here are 5 cool effects that you will learn in this post.

1. Pulsate effect
2. Press Effect
3. Shake Effect
4. Animate the shape on click
5. 3 Ways to disable the default click effect

For detailed implementation, check out this amazing [article](https://blog.canopas.com/jetpack-compose-cool-button-click-effects-c6bbecec7bcb).
Serverless Infrastructure, Backend and Frontend in one Package : SOMOD
Tags: javascript, serverless, nextjs, aws
Published: 2022-10-06 08:53:04

> I'm writing this post to introduce the new framework for the serverless stack, the **SOMOD**.

## SOMOD - Serverless Optimized MODules

SOMOD Combines 3 parts of the application, **Infrastructure**, **Backend**, and **Frontend** into a single NPM Package.

Each Module (the NPM package created using SOMOD) is extendible and reusable. Complex applications can be made just by adding the smaller modules as dependencies.

### Features of SOMOD

   - Sharable
   - Reusable
   - Extendible
   - Encapsulates everything needed for an application
   - Serverless Optimized
   - Compatible with any module developed using SOMOD
   - Readily available modules from our library
   - Easy learning curve.

[Try SOMOD](https://docs.somod.dev/getting-started)
Design considerations when building highly available online applications
Tags: aws, edge, architecture
Published: 2022-10-06 08:11:39

---
title: Design considerations when building highly available online applications
published: true
description: Resources for the session Design Considerations When Building Highly Available Online Applications
tags: aws,edge,architecture
// cover_image: https://cdn.grosch.se/dev-to/improve-resilience-with-automated-chaos-engineering/improve-resilience-with-automated-chaos-engineering.png
---

This post contains resources for the session Design Considerations When Building Highly Available Online Applications.

The availability of your online application can be impacted by many events, such as network congestion on the internet, server failures, service failures, malicious activity, faulty software updates, and more. Join us in this session to learn about advanced patterns using AWS Edge services Amazon CloudFront, AWS Global Accelerator, AWS WAF, and AWS Shield, that you can implement now to address common availability risks that threaten your application.

#### How Amazon Route 53 Application Recovery Controller works
https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-how-it-works.html

#### Enhanced origin failover using Amazon CloudFront and AWS Lambda@Edge
https://aws.amazon.com/blogs/media/enhanced-origin-failover-using-amazon-cloudfront-and-aws-lambdaedge/

#### Static stability using Availability Zones
https://aws.amazon.com/builders-library/static-stability-using-availability-zones/

#### Using AWS Shield Advanced protection groups to improve DDoS detection and mitigation
https://aws.amazon.com/blogs/security/using-aws-shield-advanced-protection-groups-to-improve-ddos-detection-and-mitigation/

#### The three most important AWS WAF rate-based rules
https://aws.amazon.com/blogs/security/three-most-important-aws-waf-rate-based-rules/

#### Virtual Waiting Room on AWS
https://aws.amazon.com/solutions/implementations/virtual-waiting-room-on-aws/

#### Fine-tune and optimize AWS WAF Bot Control mitigation capability
https://aws.amazon.com/blogs/security/fine-tune-and-optimize-aws-waf-bot-control-mitigation-capability/

#### AWS Best Practices for DDoS Resiliency
https://d0.awsstatic.com/whitepapers/Security/DDoS_White_Paper.pdf

If you have any questions, please reach out on [Twitter](https://twitter.com/GunnarGrosch) or [LinkedIn](https://www.linkedin.com/in/gunnargrosch/).
react native firebase fcm (firebase messaging cloud) + java spring boot: how to push notification
Tags: reactnative, rnfirebase, java, pushnotification
Published: 2022-10-06 08:07:31

## How to push FCM Notification with Java
- This guide refer to this https://rnfirebase.io/messaging/usage#data-only-messages but for java

## Scenarior
- Just use for `data-only` message
- Need an extra field to contain id of notification
- If use notification like normal => not have id
- Want to custom notification
- Send notification for `quit` + `foreground` + `background`


## 
```java
@Slf4j
@SpringBootTest
public class FcmTests {

    @Autowired
    FirebaseMessaging firebaseMessaging;

    @Test
    public void test1() throws FirebaseMessagingException {
        log.info("FCM Sending...");

        List<String> registrationTokens = Collections.singletonList("<your fcm token here>");

        // iOS Config
        Aps aps = Aps.builder()
                .setContentAvailable(true)
                .build();
        ApnsConfig apnsConfig = ApnsConfig.builder()
                .setAps(aps)
                .build();
        // android config
        AndroidConfig androidConfig = AndroidConfig.builder()
                .setPriority(AndroidConfig.Priority.HIGH)
                .build();

        MulticastMessage message = MulticastMessage.builder()
                .putData("title", "you can do everything")
                .putData("id", "1")
                .putData("body", "jumppp....")
                .setAndroidConfig(androidConfig)
                .setApnsConfig(apnsConfig)
                .addAllTokens(registrationTokens)
                .build();
        BatchResponse response = firebaseMessaging.sendMulticast(message);
        // See the BatchResponse reference documentation
        // for the contents of response.
        log.info("FCM Send success count=[{}]", response.getSuccessCount());
    }
}

```
A Quick 10-Second Programming Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2022-10-06 08:00:08

---
title: "A Quick 10-Second Programming Joke For Today"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259ae4191d.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q___: Why did the developer cancel their dinner plans?

___A___: They were unable to fulfil peer dependencies
 -->
Jangan Berharap Pada yang tidak pasti
Published: 2022-10-06 07:57:30

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

Setelah lulus kuliah dengan nilai bagus, harapan mereka akan segera mendapatkan pekerjaan dan mulai menghasilkan uang dengan segala skill yang telah ditekuni setelah kuliah.

Namun nyatanya, tidak semudah yang dibayangkan. Mencari pekerjaan yang sesuai dengan passion begitu sulit di negeri ini.Dari sektor dan instansi manapun semuanya serba orang dalam.

Jadi, bagaimana solusinya? Saya pun belum tahu jawabanya. Namun untuk alternatif menurut saya lebih baik terjun ke bidang freelance yang lebih fleksibel tanpa terikat waktu.

Buat Anda yang belum tahu apa itu freelance. 

Freelancer atau yang biasa disebut dengan tenaga lepas adalah pekerjaan yang tidak terikat kontrak jangka panjang namun tetap memiliki ikatan kerja yang kuat terhadap perusahaan atau individu. Kontrak yang diberikan terhadap freelancer ini biasanya hanya berisi project, design, waktu pengerjaan, dan juga biaya yang dikenakan.

Nah untuk sekarang ini, project yang paling banyak dicari adalah pemograman. Pemograman apa saja itu? Ada banyak bidang pemograman yang dapat Anda coba seperti misalnya.

1. Java/Javascript
2. C++
3. PHP
4. Ruby
5. Phyton

Selain 5 pemograman diatas, masih banyak bidang pemograman lain yang dibutuhkan oleh orang atau perusahaan.

Nah, kesimpulanya... berhentilah mengeluh, teruslah mengasah bidang pemograman. Karena dunia pemograman itu mengasikan.
Piotr Drozd Blog 1
Tags: opensource
Published: 2022-09-09 03:02:36

## Introduce yourself. Why are you taking this course? What is it about Open Source that attracted you?

Hello my name is Piotr Drozd I'm a 4th year student in the bachelor of software development program at Seneca College. In my free time I like playing video games and building personal projects. Currently I'm in the DPS 909 course which is about Open Source development which interests me as It's something I've always wanted to get into because I like the idea of collaborative work on projects that many people will use. also I have had friends who have recommended this course to me and tell me that the projects and the work they have done in this course has helped them in their professional career.

## What are you hoping to accomplish this term? What kinds of projects do you want to work on?

Personally I want to challenge myself i want to get better at collaborative coding and using GitHub. In the capstone project I worked on last year I felt their was a lot of things i was doing wrong when i was using GitHub things i would push and then break everything so i would need to revert the changes and see what i changed that caused these issues i want to improve because i know GitHub experience is invaluable to a developer. I'm not sure what projects i want to work on however i want to research already established projects and try to gain experience working on them.

## What was the the GitHub trending repo you researched above? Provide a link and tell us about it. Why did you pick it?

[Stable Diffusion](https://github.com/CompVis/stable-diffusion)

The GitHub repo I chose was Stable Diffusion I've been hearing and seeing a lot of cool new AI projects this one takes text and creates an Image from that text. Recently AI art has even won a contest so i don't think its going away anytime soon. I think their are many possibilities for AI created things in open source and with more experience i would want to get involved in any of these types of projects.
Memoji's as placeholder avatars
Tags: webdev, javascript, react, programming
Published: 2022-10-06 07:48:14

I was working on a table component for [copyui.com](https://copyui.com)

![copyui table inspiration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9tbs8k7n909i9xefvnwb.png)

and I needed avatars for one of the elements in the table, so I spent a day working on https://alohe.github.io/memojis

![memoji preview image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cukkivxegigt2sng653m.png)

You can add the avatars to your projects in seconds
![preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gzpoqld4qha30urybb95.png)

It's open source on [Github](http://github.com/alohe/memojis)

If you have questions or feedback feel free to reach out, also follow me on [Twitter 😊](https://twitter.com/alemalohe)
Contribute to Encore with Hacktoberfest
Tags: hacktoberfest, go, opensource, swag
Published: 2022-10-06 07:30:25

**Hacktoberfest is here, contribute to [Encore](https://encore.dev) and get rewards!**

For those of you who don't know, Hacktoberfest facilitates open source contributions by giving out a [Reward Kit](https://docs.google.com/forms/d/e/1FAIpQLSfHBrwJir4B_MoC7olVh-1feXjEynqMhq0aO6QTYEd40Qon-A/viewform) (aka swag) for everyone who makes open source contributions in October. 
Any issue in the Encore [open source project](https://github.com/encoredev/encore) labelled "hacktoberfest" is now up for grabs!

Starting Fri 7th Oct, we'll also be hosting office hours where we'll demo what we're working on, see demos of what the community is working on, and more. [Read more here](https://community.encore.dev/t/our-new-office-hours-to-kick-off-hacktoberfest/66) to learn about Hacktoberfest and our new office hours!
What to look for When Hiring Laravel Developers?
Tags: laravel, mobile, development, app
Published: 2022-10-06 07:13:58


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eoef5xi2eggvxeo45ieb.png)
Laravel is a free, open-source PHP web framework for creating Model-View-Controller (MVC) websites and online apps. Laravel is very scalable. It incorporates the most significant features of several web frameworks, including frameworks built on totally different programming languages, such as Ruby on Rails, Sinatra, and ASP.NET MVC.
 
With over 500,000 active websites using Laravel, it is no surprise that this framework is extensively used and trusted by developers worldwide. If you want to leverage the capabilities of Laravel for your project, you must hire Laravel developers with rich industry experience and knowledge. You must look for when hiring Laravel developers for your project.
 
**1. Past Experience**
 
When you **[hire a dedicated Laravel developer](https://scalacode.com/hire-laravel-developers/)**, you must check their experience and work record. It is the best way to predict their ability to develop websites and apps. Begin by reviewing their portfolios and obtaining feedback from their prior customers and employers.
 
**2. Soft Skills**
 
Developers are typically more prominent team members and must interact and collaborate with their coworkers and customers. That is why, besides being a strong coder, a great Laravel developer must embrace soft talents such as effective communication, curiosity, critical thinking, and so on. They should know your language and understand your culture too.
 
**3. Leadership Quality**
 
Integrity, self-awareness, gratitude, empathy, learning agility, courage, and respect are all desirable attributes in a Laravel developer. The one you choose should have the leadership quality to take the project to completion. They must take responsibility for handling the project while putting the right team members at work.
 
Onboarding a professional Laravel developer involves a significant amount of effort and time. You will need to combine hundreds of resumes and interviews to screen and employ a Laravel developer with the necessary technical abilities. To reduce your hassle, we recommend you choose **[ScalaCode](https://scalacode.com/)**, a trusted tech company in India. You can hire a dedicated Laravel developer with all the necessary skills within your budget from ScalaCode.
Go URL Shortening Service
Tags: go, redis, systems, design
Published: 2022-10-06 07:08:50

## Aside from just being more pleasing to the eye, shortened URLs can have the following added benefits:

- More streamlined in appearance
- If you’re trying to build a brand and are doing so through a social media campaign, having all your links be the same length and appear very similar is crucial.
- Shortened links display better in emails, print material, and other places.
- Tracking capabilities
- Clicks on the link can be tracked
- More validity in social media engagement:
- A shortened link matching other links on your digital marketing materials and social media content lends validity to you as a business.
- Long URLs with random characters and numbers can look shady, especially to someone who’s a new customer


Detailed analysis and source code [here](https://github.com/AN4553R/UrlShortener)
Running NextJS with Bun
Tags: node, javascript, nextjs, bunjs
Published: 2022-10-06 06:53:59

After our very first [introduction with Bun](https://daily-dev-tips.com/posts/a-first-look-at-bun/) and running a ][React application](https://daily-dev-tips.com/posts/using-bun-with-react/) with it, let's look at how to run a NextJS application with Bun.

At the point of writing, there are still quite a few features on the roadmap, so we are a bit limited in what we can use.

## Running Next.js with Bun

To get started, run the following command to generate the project.

```bash
bun create next bun-next
```

Where `bun-next` is the project folder name, you will be creating with this command.

This will scaffold your basic Next application, and you can go ahead and create components and pages as you normally would.

However, there are some caveats I ran into.

- API routes don't work yet
- I had an issue with fetch in SSR \*(this should be upcoming soon)
- And I've read the Tailwind plugin is not fully supported

However, it's an excellent way to try out Bun and see how fast it is.

I added a new page to the project called `about.js`.

```js
import Head from 'next/head';
import React from 'react';
import styles from '../styles/Home.module.css';
import nextPackage from 'next/package.json';

export default function About({}) {
  return (
    <div>
      <Head>
        <title>Next.js</title>
        <meta name='description' content='Generated by create next app' />
        <link rel='icon' href='/favicon.ico' />
      </Head>

      <main className={styles.main}>
        <h1 className={styles.title}>About</h1>

        <p className={styles.description}>
          This is a Next.JS project run on Bun
        </p>
        <a href='/'>Back to the homepage</a>
      </main>
    </div>
  );
}
```

Now add a link to your index page like this:

```js
<a href='/about'>Read more on the about page</a>
```

As you can see, I'm using the HTML link instead of the Next one; this seems unsupported in Bun. But I will come back to this.

As for now, we can run Next.js on a Bun runtime.

![Bun running NextJS application](https://cdn.hashnode.com/res/hashnode/image/upload/v1664171920049/33FM5p7kJ.png)

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)