teleren/devto huggingface dataset:
RubyConf 2022 Talk Video for Building Native GUI Apps in Ruby
Tags: ruby, gui, apps, native
Published: 2023-02-07 21:36:10

My RubyConf 2022 talk video on "Building Native GUI Apps in Ruby" using the Fukuoka Award Winning Glimmer DSL for LibUI has just been released!

{% embed https://youtu.be/1Bh4CnJqHyY %}
Moonly weekly progress update #35
Tags: javascript, saas, growt, nf
Published: 2023-02-07 21:27:57


## Moonly weekly progress update #35

![](https://cdn-images-1.medium.com/max/3200/1*ICbzdZpwsjpPAUS8Mc9Wlg.png)

Hello amazing people, I hope everyone feels great!

Portfolio Tracker, Staking as a service, and Discord bot are one week closer to achieving our goal. We are happy that people will really gain a lot from these new features!

**Weekly devs progress:**

* Researched how we can display discord relink message

* Made DB changes and implemented functionality for this feature

* Fixed some design issues on the profile and login page

* Investigated role issue on the Discord bot

* Fixed discord-bot deployment issues

* Deployed mints scraper on RPC server

* Investigated an issue about contradictory rule setup

* Tested and deployed the latest changes on the Discord bot (HVB)

* Checked the progress of scraping, did minor fixes

**Staking (Locking):**

* Edit metadata functionality added

* Data caching was added for getting tokens

* Fixed rendering issue

* Added creator field in token creation

* Updated Token Create/Update Form for UI

* Give a Reward boost based on the current time passed for reward per day(Smart-Contract)

* Give Reward for Reward Boost even when the boost period is not complete

* Calculated Real-time reward on frontend

* Show all time of staked on hover in seconds

* Added Pagination For Staking Nft Page

* Fixed a bug related to the pagination component

* Fixed date formatting on NFT-card

* Fixed removing trait reward when it’s not available in the DB

* Show special trait item on Nft-Item if matches with collection

* Fixed fetch error when it aborted with page refresh

**Portfolio Tracker:**

* Relinked transactions to tokens

* Removed transactions that cannot be tied to tokens

* Deployed changes on the RPC server

* Investigated and fixed PT’s different holding value issue

* Fixed Token Tracker Postgres deadlock issue

* Started implementing simple workers for scraping mints

Upcoming NFT projects to mint:

[https://moon.ly/nft/wolf-capital](https://moon.ly/nft/wolf-capital)

[https://moon.ly/nft/solcasinoio](https://moon.ly/nft/solcasinoio)

[https://moon.ly/nft/mad-lads](https://moon.ly/nft/mad-lads)

[https://moon.ly/nft/kaimana](https://moon.ly/nft/kaimana)

Minted projects worth mentioning:

[https://moon.ly/nft/entreprenerdz](https://moon.ly/nft/entreprenerdz)

[https://moon.ly/nft/pirate-squad](https://moon.ly/nft/pirate-squad)

[https://moon.ly/nft/mindfolk](https://moon.ly/nft/mindfolk)

[https://moon.ly/nft/subber-k3y](https://moon.ly/nft/subber-k3y)

Check out our latest blog post: Binance to Suspend All USD Transfers this Week

[https://moon.ly/blog/binance-to-suspend-usd-transfers/](https://moon.ly/blog/binance-to-suspend-usd-transfers/)
Emergence of AI: Savior Tech or Fear Mongering Machine?
Tags: ai, webdev
Published: 2023-02-07 21:25:06

kind of confused on the whole fear mongering situation with AI. i understand where people are coming from and the very real fear of losing jobs to this thing but instead of doing this, shouldn't we rejoice at such thing? a system this complex could be a blessing to human kind as a whole.

My main question with Artificial Intelligence has always been "Based on the emerging technology of Chatgpt and other's alike, could it be possible to apply these AI capabilities to applications that have a broader reach for example: how can we offer this same product to those who do not have the luxuries of internet/wifi but can somehow feel the effect and reach of such thing. could i be through farming, crop management solutions in impoverished countries that will maximize crop yield?" 

Given the current state of the world, and the loss of cultural intellectuality that was prior passed through generations by word of mouth and necessity, many of these things are being lost to time and our newer generations are losing interest in, could we possibly employ the excitement of having an ever knowing robot/system at someone's disposal to learn? or whenever the need arises?  

Not to say i am some kind of genius, which i'm very very far from and would hate to try to come across as a wannabe, but i do like to wonder beyond my technical capabilities and the possibilities beyond what is currently possible. 

these are my two cents for today.
Is Java Still Relevant in 2023
Tags: java, programming, beginners, career
Published: 2023-02-07 21:20:50

As technology evolves, so do the programming languages used to create software and applications. One of the most popular programming languages is Java, which has been around since 1995. But as we move into a new decade, it's important to ask whether or not Java will still be relevant by 2023. Let’s explore the answer below.

## The Benefits of Java for Developers

Java is an object-oriented, powerful and versatile programming language with numerous applications and benefits. It runs on any platform, including mobile devices, making it the ideal choice for programmers across industries such as finance, aviation, and engineering. Java is object-oriented, which means its codes can be used over and over again, reducing development time significantly. Additionally, Java architecture-neutral properties give it greater flexibility than other languages. Moreover, Java programs are highly secure due to its powerful built-in protection features like data encryption, firewalls etc. For these reasons and more, Java stands out as one of the most reliable programming languages available today.

## The Future of Java

It’s clear that Java will remain a popular language for many years to come. According to Statista, over 3 billion devices run on some type of Java platform, making up roughly 60% of the market share for programming languages worldwide. This figure is expected to increase as more companies invest in cloud-based technologies and mobile computing platforms that rely heavily on Java development tools and frameworks. In addition, many universities continue to offer courses in Java programming as part of their computer science curriculum, meaning that the language has staying power within the academic realm too.

Companies such as **Google**, **Meta**, **Amazon** and other tech giants heavily rely on Java to power their systems.

As we look ahead towards 2023 and beyond, it's safe to say that learning how to program with Java will remain a valuable skill for many years to come. Not only is it one of the most popular languages among developers today, but its widespread acceptance throughout academia and industry make it a great choice regardless of what kind of development project you're working on. Whether you’re just starting out in coding or have been writing code for years, taking some time to learn or brush up on your skills in this versatile language could serve you well down the line!

## Watch Full Video
{% embed https://youtu.be/9yzMKaKcoC0 %}
Polaris bank code 2023
Published: 2023-02-07 21:07:47

[https://www.bankfanz.com/polaris-bank-transfer-code/](https://www.bankfanz.com/polaris-bank-transfer-code/#utm_source=backlinks&utm_medium=search&utm_campaign=darry+ring+us&utm_content=Michelle)

https://plaza.rakuten.co.jp/polarisbankcode1/diary/202302070000/
https://peatix.com/user/15855719/
https://www.provenexpert.com/polaris-bank-code-to-check-balance/
https://www.producthunt.com/@kudabank11
https://www.divephotoguide.com/user/polarisbankcode1
https://wakelet.com/@Polarisbankcodetocheckbalance2023371
https://vocal.media/authors/polaris-bank-code-to-check-balance-2023
https://www.lifeofpix.com/photographers/polarisbankcode1/
https://seedandspark.com/user/polaris-bank-code-to-check-balance
https://rosalind.info/users/Polarisbankcode1/
http://phillipsservices.net/UserProfile/tabid/43/userId/197929/Default.aspx
https://app.roll20.net/users/11603978/polaris-bank-code-to-check-balance-2
https://speakerdeck.com/polarisbankcode1
https://social.msdn.microsoft.com/Profile/Polaris%20bank%20code%20to%20check%20balance%202023%201
https://camp-fire.jp/profile/polarisbank1
https://plazapublica.cdmx.gob.mx/profiles/Polarisbankcode1/activity
https://www.metal-archives.com/users/polarisbankcode1
https://storium.com/user/polarisbankcode1
https://trabajo.merca20.com/author/polarisbankcode1/
https://www.intensedebate.com/people/Polarisbank1
https://www.mifare.net/support/forum/users/polarisbankcode1/
https://pinshape.com/users/2569860-polarisbank1
http://foxsheets.com/UserProfile/tabid/57/userId/120235/Default.aspx
https://www.kompasiana.com/polarisbankcode1
https://www.credly.com/users/kelvin-mart/badges
https://www.myminifactory.com/users/polarisbankcode1
https://www.sqlservercentral.com/forums/user/polarisbankcode1
https://www.longisland.com/profile/polarisbankcode1
https://guides.co/a/kelvin-mart
https://myanimelist.net/profile/Polarisbankcode1
#DEVDiscuss: Golden Handcuffs 💰
Tags: devdiscuss, career, productivity
Published: 2023-02-07 21:04:54

*image created by [Margaux Peltat](https://www.patreon.com/margauxpeltat) for the [Chilled Cow YouTube channel](https://www.youtube.com/watch?v=lTRiuFIWV54)* 

Time for #DEVDiscuss — right here on DEV 😎

{% embed https://dev.to/_michaellin/why-i-quit-a-450000-engineering-job-at-netflix-1f0g %}

Inspired by @_michaellin's Top 7 post, tonight’s topic is...the golden handcuffs 💰

If you're not familiar, the phrase "golden handcuffs" refers to a job that makes you feel bored, unhappy, or dissatisfied, while also compensating you really well. So well, in fact, that you feel like you can't or shouldn't leave. 

---

Questions:
- **Have you experienced the "golden handcuffs"?**
- **What are your personal boundaries around compensation and  job satisfaction? Which is more important to you, and why?**
- **Any triumphs, fails, or other stories you'd like to share on this topic?**
Sniffnet: monitor your network traffic with ease - New Release v1.1.0
Tags: rust, github, opensource, showdev
Published: 2023-02-07 21:00:52

[Sniffnet](https://github.com/GyulyVGC/sniffnet) is a simple yet insightful application to let you have a glance into your network traffic in a straightforward and appealing way.

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

Today it has been updated to version 1.1.0, which introduces several new functionalities:

- 🌍 Added Geolocation of the remote IP addresses
- ⭐ Implemented the possibility of marking a group of connections as favorites and added favorites view to the report
- 🔉 Added Custom Notifications to inform the user when defined network events occur:
  * data intensity exceeded a defined packets per second rate
  * data intensity exceeded a defined bytes per second rate
  * new data are exchanged from one of the favorite connections

<p align="center">
<img alt="" src="https://user-images.githubusercontent.com/100347457/216972251-41a413e5-89f7-4c8c-b41b-a291470cba59.png" width="100%"/>
</p>

- ⚙️ Added Settings pages to configure the state of the application (persistently stored in a configuration file):
  * customise notifications
  * choose between 4 different application styles
  * set the application language (this release introduces the Italian language 🇮🇹, and [more languages will be supported soon](https://github.com/GyulyVGC/sniffnet/issues/60))

<p align="center">
<img alt="" src="https://user-images.githubusercontent.com/100347457/216972254-10d0c9fd-34eb-43f4-94dd-61e882bcc364.png" width="100%"/>
</p>

Feedbacks and comments are warmly welcomed! Have a good day!
Correlation between DXY and Crypto for better profits
Tags: trading, tradingbot, autotrader, tradingsoftware
Published: 2023-02-07 20:03:06

What is the DXY (Dollar Index)? What does it mean in correlation to cryptocurrency trading? How can you use it for your advantage
When you trade cryptocurrencies you will hear about the DXY. But what is the DXY? And why is it important for your crypto trading?

What is DXY (Dollar Index) ?
The US Dollar Index (DXY) is a measure of the value of the US dollar relative to a basket of six major foreign currencies. The index is designed to provide a snapshot of the US dollar’s performance against a basket of other currencies that are considered to be its most significant trading partners.

The DXY is widely followed by currency traders, financial analysts, and investors, who use it as a benchmark for the value of the US dollar. The index is also used to hedge against currency risks and to evaluate the performance of international investments.

## Why DXY is Important and what are the relations between DXY and Crypto?
It’s worth noting that changes in the US Dollar Index can have a significant impact on the global financial markets, as a strong or weak US dollar can affect the prices of Cryptocurrencies, Commodities, Equites, DXY Bonds, and other financial instruments. A rising DXY typically indicates that the US dollar is strengthening against other major currencies, while a falling DXY suggests that the US dollar is weakening.

## Examples for DXY in Crypto Trading — Economic news
Let’s dive into a small example to better understand the correlation between the DXY and crypto market. On 19.01.2023 we had three economic announcements:

1.INITIAL JOBLESS CLAIMS

2.PHILADELPHIA MANUFACTURING INDEX

3.BUILDING PERMITS


The jobless claims and philadelphia manufacturing index are positive for the DXY and building permits are negative for the DXY so overall the DXY is bullish. This means it’s negative for the crypto market.

Such announcements always come with high volatility. Another good example is the FOMC meeting from 01.02.2023.


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

In all cases it is important to know what you do and often it is better to stay away from the market to avoid losing money.

Crypticorn’s AI uses the economic announcements to profit from them. Crypto traders and crypto signal groups will also keep an eye on such important economic announcements.If crypto day traders don’t have an eye on such important market moving events you shouldn’t follow their trades.
AWS CloudWatch Logging for Golang Microservices on EKS with Logrus and Fluent bit
Tags: security, go, api, cloudwatch
Published: 2023-02-07 19:57:55

With the API-first approach of building software products becoming prominent and APIs now making up the most common communication channel for internet traffic, API security becomes paramount. 
API logging and monitoring is a key component in securing APIs, amongst others that include discovery, vulnerability management and compliance. APIs should have an inbuilt mechanism to collect access and transaction activities which can aid in their monitoring to identify potentially malicious activity. 

![API Logging on AWS EKS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5dh5kj5mk0tpdr0srwaf.png)
Golang being one of the most popular frameworks for developing APIs due to its performance and support for concurrency, I have created a guide to aid developers collect API logs through the Go LogRus library and forward such to AWS CloudWatch from a microservice deployed in AWS EKS.

[Check it here](https://lnkd.in/d3qTv74h)
Tokens avec des Fees en Uniswap V3. C'est possible?
Published: 2023-02-07 19:41:56

---
title: Tokens avec des Fees en Uniswap V3. C'est possible?
published: true
description: 
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iwfnjh3wlioxyh077psh.png
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-21 21:53 +0000
---

Uniswap a été lancé en 2021 et aujourd'hui c'est le DEX avec le plus de volume. Dans cette vidéo, nous examinerons comment il fonctionne en concentrant la liquidité à travers les NFT et nous lancerons un token qui extrait des commissions percentuelles sur l'achat et le P2P.

{%youtube ihdbpkYcUhQ%}

## Avant de commencer

For this tutorial you will need [Metamask](https://metamask.io/) or another compatible wallet with Goerli funds that you can get from a [faucet](https://goerlifaucet.com/).

Pour ce tutoriel tu vas avoir besoin de [Metamask](https://metamask.io/) ou n'importe quel wallet compatible avec l'EVM et aussi du GoerliETH que tu peux trouver gratuitement dans un [faucet](https://goerlifaucet.com/).

## Contrat intelligent avec des fees dans Uniswap V3

Vouz pouvez lancer ce token en Mainnet et en Goerli car Uniswap a [les memes addresses]( https://docs.uniswap.org/contracts/v3/reference/deployments). Mais vous devrez changes les addresses de ‘Base Token’avec l'addresse de WETH en Mainnet `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2` et en Goerli `0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6`.

Vous pouvez trouver plus en [Biblioteca](https://github.com/FilosofiaCodigo/Biblioteca) y plus de detail des parametres dans la [Documentation](https://github.com/FilosofiaCodigo/Biblioteca/blob/master/docs/ERC20/UniswapV3FeeToken.md).

```solidity
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

import "biblioteca/contracts/ERC20/UniswapV3FeeToken.sol";

contract MyUniswapV3FeeToken is UniswapV3FeeToken
{
    constructor() UniswapV3FeeToken(
        "My Token", "MTKN",                         // Name and Symbol
        1_000_000_000 ether,                        // 1 billion supply
        100, 200,                                   // Fees: 1% buy 2% P2P
        msg.sender,                                 // Vault Address
        0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6, // Base token: WETH
        1_000_000)                                  // Initial rate: 1 WETH = 1,000,000 tokens
    {
    }
}
```

**¡Merci pour voir cette video!**

Suivez nous ici en dev.to et en [Youtube](https://www.youtube.com/channel/UCl3hXoRETXvoTWI-j0Y6ZTw) pour tout ce qui a à voir avec Blockchain en Francais.
Fee Tokens on Uniswap V3. Is it even possible?
Published: 2023-02-07 19:31:09

---
title: Fee Tokens on Uniswap V3. Is it even possible?
published: true
description: 
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/thtgnazqc14i92rh5cnh.png
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-21 21:53 +0000
---

Uniswap was launch in 2021 and today is the Dex with more volume. In this video we will look at how it works concentrated liquidity through the NFTs and, we will launch a token that extracts percentual commissions on purchase and P2P.

{%youtube npqNstJ1LYA%}

## Before we start

For this tutorial you will need [Metamask](https://metamask.io/) or another compatible wallet with Goerli funds that you can get from a [faucet](https://goerlifaucet.com/).

## Smart contract with token fees in Uniswap V3

You can launch the following token in Mainnet like in Goerlin because the Uniswap contracts share [the same addresses]( https://docs.uniswap.org/contracts/v3/reference/deployments). Nevertheless, you will need to adjust the address of the ‘Base Token’, the address of WETH in Mainnet `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2` and in Goerli `0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6`.

Ypu can find this contract and more in [Biblioteca](https://github.com/FilosofiaCodigo/Biblioteca) y more info about the paramteris in the [API Docs](https://github.com/FilosofiaCodigo/Biblioteca/blob/master/docs/ERC20/UniswapV3FeeToken.md).

```solidity
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

import "biblioteca/contracts/ERC20/UniswapV3FeeToken.sol";

contract MyUniswapV3FeeToken is UniswapV3FeeToken
{
    constructor() UniswapV3FeeToken(
        "My Token", "MTKN",                         // Name and Symbol
        1_000_000_000 ether,                        // 1 billion supply
        100, 200,                                   // Fees: 1% buy 2% P2P
        msg.sender,                                 // Vault Address
        0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6, // Base token: WETH
        1_000_000)                                  // Initial rate: 1 WETH = 1,000,000 tokens
    {
    }
}
```

**Thanks for watching this video!**

Follows us on dev.to and in [Youtube]( https://www.youtube.com/channel/UCbF5CFuXv2vTkcGfepWV2nA) for everything related to Blockchain development.
Logging practices
Tags: logging, node
Published: 2023-02-07 19:14:13

---
title: Logging practices
published: true
tags: ['logging', 'node']
canonical_url: https://sevic.dev/notes/logging-nodejs/
---

This post covers some logging practices for the back-end (Node.js) apps.

- Avoid putting unique identifiers (e.g., user id) within the message. A unique id will produce a lot of different messages with the same context. Use it as a message parameter.

- Use the appropriate log level for the message. There are multiple log levels
  - info - app behavior, don't log every single step
  - error - app processing failure, something that needs to be fixed
  - debug - additional logs needed for troubleshooting
  - warning - something unexpected happened (e.g., third-party API fails)
  - fatal - app crash, needs to be fixed as soon as possible

Don't use the debug logs on production. Put log level as an environment variable.

- Stream logs to the standard output in JSON format so logging aggregators (Graylog, e.g.) can collect and adequately parse them

- Avoid logging any credentials, like passwords, auth tokens, etc.

- Put correlation ID as a message parameter for tracing related logs.

- Use a configurable logger like [pino](https://github.com/pinojs/pino)

```js
const pino = require('pino');
const logger = pino({
  level: process.env.LOG_LEVEL || 'info',
  redact: {
    paths: ['token'],
    remove: true,
  },
});

logger.info({ someId: 'id' }, 'Started the app...');

const correlationId = request.headers['correlation-id'] || uuid.v4();
logger.debug({ data: 'some data useful for debugging', correlationId }, 'Sending the request...');
```

### Boilerplate

Here is the [link](https://sevic.dev/nestjs-starter) to the boilerplate I use for the development.
Jest with TypeScript and aliased imports (custom paths)
Tags: testing, typescript, jest, javascript
Published: 2023-02-07 19:12:25

In this post we are going to setup `jest` for a `TypeScript` project with custom aliases (path mapping) support. If you haven't read my previous post about cleaner imports in TypeScript using aliases, you can do that [here](https://blog.manos-liakos.dev/cleaner-imports-with-aliases-in-react-typescript/). It's pretty cool that we can use the same aliases in our tests to keep them nice and clean ✨

We are going to use `yarn` package manager. However, there are no differences with `npm` - other than the commands themselves.

## Install Jest
- Run `yarn add --dev jest`.

## Add TS support
- Add type support: `yarn add --dev @types/jest`
- Install `ts-jest`. It's a custom jest transformer that will help us use Jest with TypeScript.
- Run `yarn jest --init` to initialize a config file. Answer the questions as you wish (ask Yes for TS support).
- Go to your `tsconfig` and `"@types/jest"` inside `types` array:

```js
{
...,
"types": [..., "@types/jest"],
...
}
```

## Add path support

- Make sure you have at least the following config in `jest.config.ts`:

```js
import { pathsToModuleNameMapper, JestConfigWithTsJest } from "ts-jest";
import { compilerOptions } from "./tsconfig.paths.json";

const jestConfig: JestConfigWithTsJest = {
  preset: "ts-jest",
  moduleDirectories: ["node_modules", "<rootDir>"],
  moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths)
 }
 
export default jestConfig;
 ```
 
 Here we import our custom paths defined in `tsconfig.paths.json` (for more info on this read [here](https://blog.manos-liakos.dev/cleaner-imports-with-aliases-in-react-typescript/)):

```js
import { compilerOptions } from "./tsconfig.paths.json";
```
 
 
 ___
 
 The `moduleDirectories` prop did the trick for me. Also make sure to remove comments from both `jest.config` and `tsconfig`, since they sometimes cause parsing errors. Hope this helped someone 😎